#include "tcp_echo_server.hpp"
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
#include <iostream>
Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::asio > | ws_echo_server |
Functions | |
void | on_message (ws_echo_server *s, websocketpp::connection_hdl hdl, ws_echo_server::message_ptr msg) |
int | main () |
Definition at line 38 of file external_io_service.cpp.
void on_message | ( | ws_echo_server * | s, |
websocketpp::connection_hdl | hdl, | ||
ws_echo_server::message_ptr | msg | ||
) |
Definition at line 41 of file external_io_service.cpp.
References websocketpp::endpoint< connection, config >::send(), and websocketpp::transport::asio::endpoint< config >::stop_listening().
Referenced by main().
int main | ( | ) |
Definition at line 61 of file external_io_service.cpp.
References websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::log::alevel::frame_payload, websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::transport::asio::endpoint< config >::listen(), on_message(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::server< config >::start_accept().