Public Member Functions | Private Member Functions | Private Attributes

tls_tunnel::ServerTransport Class Reference

#include <tls_tunnel.h>

Inheritance diagram for tls_tunnel::ServerTransport:

List of all members.

Public Member Functions

 ServerTransport (const std::string &ip, unsigned short port, boost::function< void(transport_ptr_t, socket_ptr_t)> on_connect)
void accept ()

Private Member Functions

void on_accept (const asio::error_code &error, socket_ptr_t socket_ptr)

Private Attributes

asio::ip::tcp::acceptor acceptor_
boost::function< void(transport_ptr_t,

Constructor & Destructor Documentation

tls_tunnel::ServerTransport::ServerTransport ( const std::string &  ip,
unsigned short  port,
boost::function< void(transport_ptr_t, socket_ptr_t)>  on_connect 

Member Function Documentation

void tls_tunnel::ServerTransport::accept (  ) 
void tls_tunnel::ServerTransport::on_accept ( const asio::error_code &  error,
socket_ptr_t  socket_ptr 
) [private]

References accept(), and on_connect_.

Referenced by accept().

Member Data Documentation

asio::ip::tcp::acceptor tls_tunnel::ServerTransport::acceptor_ [private]

Referenced by accept().

Referenced by on_accept().

The documentation for this class was generated from the following files: