38using websocketpp::lib::placeholders::_1;
39using websocketpp::lib::placeholders::_2;
40using websocketpp::lib::bind;
45 typedef websocketpp::lib::shared_ptr<tcp_echo_session>
ptr;
51 websocketpp::lib::bind(
55 void handle_read(
const asio::error_code & ec,
size_t transferred) {
asio::ip::tcp::acceptor m_acceptor
tcp_echo_server(asio::io_service &service, short port)
void handle_accept(tcp_echo_session::ptr new_session, const asio::error_code &ec)
asio::io_service & m_service
void handle_write(const asio::error_code &ec)
asio::ip::tcp::socket m_socket
websocketpp::lib::shared_ptr< tcp_echo_session > ptr
void handle_read(const asio::error_code &ec, size_t transferred)
tcp_echo_session(asio::io_service &service)