Public Member Functions | Private Member Functions | Private Attributes

tls_tunnel::ServerProxy Class Reference

#include <tls_tunnel.h>

Inheritance diagram for tls_tunnel::ServerProxy:

List of all members.

Public Member Functions

 ServerProxy (const std::string &bind_ip, unsigned short bind_port, unsigned short local_port, const std::string &ca_file, const std::string &cert_file, const std::string &key_file)
virtual void setup ()

Private Member Functions

void on_transport_connect (transport_ptr_t transport_ptr, socket_ptr_t remote_socket_ptr)
session_ptr_t setup_tls_session (socket_ptr_t remote_socket_ptr)

Private Attributes

std::string bind_ip_
unsigned short bind_port_
unsigned short local_port_
gnutls_dh_params_t dh_params

Constructor & Destructor Documentation

tls_tunnel::ServerProxy::ServerProxy ( const std::string &  bind_ip,
unsigned short  bind_port,
unsigned short  local_port,
const std::string &  ca_file,
const std::string &  cert_file,
const std::string &  key_file 

Member Function Documentation

void tls_tunnel::ServerProxy::on_transport_connect ( transport_ptr_t  transport_ptr,
socket_ptr_t  remote_socket_ptr 
) [private]
void tls_tunnel::ServerProxy::setup (  )  [virtual]
session_ptr_t tls_tunnel::ServerProxy::setup_tls_session ( socket_ptr_t  remote_socket_ptr  )  [private]

Member Data Documentation

std::string tls_tunnel::ServerProxy::bind_ip_ [private]

Referenced by setup().

unsigned short tls_tunnel::ServerProxy::bind_port_ [private]

Referenced by setup().

gnutls_dh_params_t tls_tunnel::ServerProxy::dh_params [private]

Referenced by ServerProxy().

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

Referenced by on_transport_connect().

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