Public Member Functions | Private Member Functions | Private Attributes

tls_tunnel::ClientProxy Class Reference

#include <tls_tunnel.h>

Inheritance diagram for tls_tunnel::ClientProxy:

List of all members.

Public Member Functions

 ClientProxy (const std::string &connect_address, unsigned short connect_port, const std::string &ca_file, bool check_hostname)
virtual void setup ()
virtual void stop ()
const std::string & local_address () const
unsigned short local_port () const

Private Member Functions

void on_transport_connect (transport_ptr_t transport_ptr, socket_ptr_t remote_socket_ptr)
void on_client_connect (const asio::error_code &error, transport_ptr_t transport_ptr, session_ptr_t session_ptr, socket_ptr_t local_socket_ptr, socket_ptr_t remote_socket_ptr)
session_ptr_t setup_tls_session (socket_ptr_t remote_socket_ptr)

Private Attributes

std::string local_address_
unsigned short local_port_
std::string connect_address_
unsigned short connect_port_
< asio::ip::tcp::acceptor > 
bool check_hostname_

Constructor & Destructor Documentation

tls_tunnel::ClientProxy::ClientProxy ( const std::string &  connect_address,
unsigned short  connect_port,
const std::string &  ca_file,
bool  check_hostname 

Member Function Documentation

const std::string & tls_tunnel::ClientProxy::local_address (  )  const

References local_address_.

unsigned short tls_tunnel::ClientProxy::local_port (  )  const

References local_port_.

void tls_tunnel::ClientProxy::on_client_connect ( const asio::error_code &  error,
transport_ptr_t  transport_ptr,
session_ptr_t  session_ptr,
socket_ptr_t  local_socket_ptr,
socket_ptr_t  remote_socket_ptr 
) [private]
void tls_tunnel::ClientProxy::on_transport_connect ( transport_ptr_t  transport_ptr,
socket_ptr_t  remote_socket_ptr 
) [private]
void tls_tunnel::ClientProxy::stop (  )  [virtual]

Reimplemented from tls_tunnel::Proxy.

References acceptor_ptr.

Member Data Documentation

boost::shared_ptr<asio::ip::tcp::acceptor> tls_tunnel::ClientProxy::acceptor_ptr [private]

Referenced by on_transport_connect(), setup(), and stop().

Referenced by setup(), and setup_tls_session().

unsigned short tls_tunnel::ClientProxy::connect_port_ [private]

Referenced by setup().

Referenced by local_address(), and setup().

unsigned short tls_tunnel::ClientProxy::local_port_ [private]

Referenced by local_port(), and setup().

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