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

#include <tcp_echo_server.hpp>

Public Member Functions

 tcp_echo_server (asio::io_service &service, short port)
 
void start_accept ()
 
void handle_accept (tcp_echo_session::ptr new_session, const asio::error_code &ec)
 

Public Attributes

asio::io_service & m_service
 
asio::ip::tcp::acceptor m_acceptor
 

Detailed Description

Definition at line 74 of file tcp_echo_server.hpp.

Constructor & Destructor Documentation

tcp_echo_server::tcp_echo_server ( asio::io_service &  service,
short  port 
)
inline

Definition at line 75 of file tcp_echo_server.hpp.

Member Function Documentation

void tcp_echo_server::start_accept ( )
inline

Definition at line 82 of file tcp_echo_server.hpp.

References handle_accept(), and tcp_echo_session::tcp_echo_session().

void tcp_echo_server::handle_accept ( tcp_echo_session::ptr  new_session,
const asio::error_code &  ec 
)
inline

Definition at line 88 of file tcp_echo_server.hpp.

Referenced by start_accept().

Member Data Documentation

asio::io_service& tcp_echo_server::m_service

Definition at line 95 of file tcp_echo_server.hpp.

asio::ip::tcp::acceptor tcp_echo_server::m_acceptor

Definition at line 96 of file tcp_echo_server.hpp.


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