NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
mock_con Struct Reference
Inheritance diagram for mock_con:
Collaboration diagram for mock_con:

Public Types

typedef websocketpp::transport::asio::connection< configbase
 
- Public Types inherited from websocketpp::transport::asio::connection< config >
typedef connection< configtype
 Type of this connection transport component. More...
 
typedef lib::shared_ptr< typeptr
 Type of a shared pointer to this connection transport component. More...
 
typedef config::socket_type::socket_con_type socket_con_type
 Type of the socket connection component. More...
 
typedef socket_con_type::ptr socket_con_ptr
 Type of a shared pointer to the socket connection component. More...
 
typedef config::alog_type alog_type
 Type of this transport's access logging policy. More...
 
typedef config::elog_type elog_type
 Type of this transport's error logging policy. More...
 
typedef config::request_type request_type
 
typedef request_type::ptr request_ptr
 
typedef config::response_type response_type
 
typedef response_type::ptr response_ptr
 
typedef lib::asio::io_service * io_service_ptr
 Type of a pointer to the Asio io_service being used. More...
 
typedef lib::shared_ptr< lib::asio::io_service::strand > strand_ptr
 Type of a pointer to the Asio io_service::strand being used. More...
 
typedef lib::shared_ptr< lib::asio::steady_timertimer_ptr
 Type of a pointer to the Asio timer class. More...
 
- Public Types inherited from websocketpp::transport::asio::tls_socket::connection
typedef connection type
 Type of this connection socket component. More...
 
typedef lib::shared_ptr< typeptr
 Type of a shared pointer to this connection socket component. More...
 
typedef lib::asio::ssl::stream< lib::asio::ip::tcp::socket > socket_type
 Type of the ASIO socket being used. More...
 
typedef lib::shared_ptr< socket_typesocket_ptr
 Type of a shared pointer to the ASIO socket being used. More...
 
typedef lib::asio::io_service * io_service_ptr
 Type of a pointer to the ASIO io_service being used. More...
 
typedef lib::shared_ptr< lib::asio::io_service::strand > strand_ptr
 Type of a pointer to the ASIO io_service strand being used. More...
 
typedef lib::shared_ptr< lib::asio::ssl::context > context_ptr
 Type of a shared pointer to the ASIO TLS context being used. More...
 

Public Member Functions

 mock_con (bool a, config::alog_type &b, config::elog_type &c)
 
void start ()
 
void handle_start (const websocketpp::lib::error_code &ec)
 
- Public Member Functions inherited from websocketpp::transport::asio::connection< config >
 connection (bool is_server, alog_type &alog, elog_type &elog)
 
ptr get_shared ()
 Get a shared pointer to this component. More...
 
bool is_secure () const
 
void set_uri (uri_ptr u)
 Set uri hook. More...
 
void set_tcp_pre_init_handler (tcp_init_handler h)
 Sets the tcp pre init handler. More...
 
void set_tcp_init_handler (tcp_init_handler h)
 Sets the tcp pre init handler (deprecated) More...
 
void set_tcp_post_init_handler (tcp_init_handler h)
 Sets the tcp post init handler. More...
 
void set_proxy (std::string const &uri, lib::error_code &ec)
 Set the proxy to connect through (exception free) More...
 
void set_proxy (std::string const &uri)
 Set the proxy to connect through (exception) More...
 
void set_proxy_basic_auth (std::string const &username, std::string const &password, lib::error_code &ec)
 Set the basic auth credentials to use (exception free) More...
 
void set_proxy_basic_auth (std::string const &username, std::string const &password)
 Set the basic auth credentials to use (exception) More...
 
void set_proxy_timeout (long duration, lib::error_code &ec)
 Set the proxy timeout duration (exception free) More...
 
void set_proxy_timeout (long duration)
 Set the proxy timeout duration (exception) More...
 
std::string const & get_proxy () const
 
std::string get_remote_endpoint () const
 Get the remote endpoint address. More...
 
connection_hdl get_handle () const
 Get the connection handle. More...
 
timer_ptr set_timer (long duration, timer_handler callback)
 Call back a function after a period of time. More...
 
void handle_timer (timer_ptr, timer_handler callback, lib::asio::error_code const &ec)
 Timer callback. More...
 
strand_ptr get_strand ()
 Get a pointer to this connection's strand. More...
 
lib::asio::error_code get_transport_ec () const
 Get the internal transport error code for a closed/failed connection. More...
 
- Public Member Functions inherited from websocketpp::transport::asio::tls_socket::connection
 connection ()
 
ptr get_shared ()
 Get a shared pointer to this component. More...
 
bool is_secure () const
 Check whether or not this connection is secure. More...
 
socket_type::lowest_layer_type & get_raw_socket ()
 Retrieve a pointer to the underlying socket. More...
 
socket_type::next_layer_type & get_next_layer ()
 Retrieve a pointer to the layer below the ssl stream. More...
 
socket_typeget_socket ()
 Retrieve a pointer to the wrapped socket. More...
 
void set_socket_init_handler (socket_init_handler h)
 Set the socket initialization handler. More...
 
void set_tls_init_handler (tls_init_handler h)
 Set TLS init handler. More...
 
std::string get_remote_endpoint (lib::error_code &ec) const
 Get the remote endpoint address. More...
 

Additional Inherited Members

- Protected Member Functions inherited from websocketpp::transport::asio::connection< config >
void init (init_handler callback)
 Initialize transport for reading. More...
 
lib::error_code proxy_init (std::string const &authority)
 initialize the proxy buffers and http parsers More...
 
lib::error_code init_asio (io_service_ptr io_service)
 Finish constructing the transport. More...
 
void handle_pre_init (init_handler callback, lib::error_code const &ec)
 
void post_init (init_handler callback)
 
void handle_post_init_timeout (timer_ptr, init_handler callback, lib::error_code const &ec)
 Post init timeout callback. More...
 
void handle_post_init (timer_ptr post_timer, init_handler callback, lib::error_code const &ec)
 Post init timeout callback. More...
 
void proxy_write (init_handler callback)
 
void handle_proxy_timeout (init_handler callback, lib::error_code const &ec)
 
void handle_proxy_write (init_handler callback, lib::asio::error_code const &ec)
 
void proxy_read (init_handler callback)
 
void handle_proxy_read (init_handler callback, lib::asio::error_code const &ec, size_t)
 Proxy read callback. More...
 
void async_read_at_least (size_t num_bytes, char *buf, size_t len, read_handler handler)
 read at least num_bytes bytes into buf and then call handler. More...
 
void handle_async_read (read_handler handler, lib::asio::error_code const &ec, size_t bytes_transferred)
 
void async_write (const char *buf, size_t len, write_handler handler)
 Initiate a potentially asyncronous write of the given buffer. More...
 
void async_write (std::vector< buffer > const &bufs, write_handler handler)
 Initiate a potentially asyncronous write of the given buffers. More...
 
void handle_async_write (write_handler handler, lib::asio::error_code const &ec, size_t)
 Async write callback. More...
 
void set_handle (connection_hdl hdl)
 Set Connection Handle. More...
 
lib::error_code interrupt (interrupt_handler handler)
 Trigger the on_interrupt handler. More...
 
lib::error_code dispatch (dispatch_handler handler)
 
void async_shutdown (shutdown_handler callback)
 close and clean up the underlying socket More...
 
void handle_async_shutdown_timeout (timer_ptr, init_handler callback, lib::error_code const &ec)
 Async shutdown timeout handler. More...
 
void handle_async_shutdown (timer_ptr shutdown_timer, shutdown_handler callback, lib::asio::error_code const &ec)
 
void cancel_socket_checked ()
 Cancel the underlying socket and log any errors. More...
 
- Protected Member Functions inherited from websocketpp::transport::asio::tls_socket::connection
lib::error_code init_asio (io_service_ptr service, strand_ptr strand, bool is_server)
 Perform one time initializations. More...
 
void set_uri (uri_ptr u)
 Set hostname hook. More...
 
void pre_init (init_handler callback)
 Pre-initialize security policy. More...
 
void post_init (init_handler callback)
 Post-initialize security policy. More...
 
void set_handle (connection_hdl hdl)
 Sets the connection handle. More...
 
void handle_init (init_handler callback, lib::asio::error_code const &ec)
 
lib::error_code get_ec () const
 
lib::asio::error_code cancel_socket ()
 Cancel all async operations on this socket. More...
 
void async_shutdown (socket::shutdown_handler callback)
 
template<typename ErrorCodeType >
lib::error_code translate_ec (ErrorCodeType ec)
 Translate any security policy specific information about an error code. More...
 
lib::error_code translate_ec (lib::error_code ec)
 Overload of translate_ec to catch cases where lib::error_code is the same type as lib::asio::error_code. More...
 

Detailed Description

Definition at line 115 of file timers.cpp.

Member Typedef Documentation

Constructor & Destructor Documentation

mock_con::mock_con ( bool  a,
config::alog_type b,
config::elog_type c 
)
inline

Definition at line 118 of file timers.cpp.

Member Function Documentation

void mock_con::start ( )
inline

Definition at line 120 of file timers.cpp.

References handle_start(), and websocketpp::session::http_state::init.

void mock_con::handle_start ( const websocketpp::lib::error_code &  ec)
inline

The documentation for this struct was generated from the following file: