#include <websocketpp/config/core.hpp>
#include <websocketpp/server.hpp>
#include <iostream>
#include <fstream>
Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::core > | server |
typedef server::message_ptr | message_ptr |
Functions | |
void | on_message (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main () |
Definition at line 8 of file iostream_server.cpp.
typedef server::message_ptr message_ptr |
Definition at line 15 of file iostream_server.cpp.
void on_message | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 18 of file iostream_server.cpp.
References websocketpp::log::alevel::app, websocketpp::endpoint< connection, config >::get_alog(), websocketpp::endpoint< connection, config >::send(), websocketpp::frame::opcode::text, websocketpp::utility::to_hex(), and websocketpp::log::stub::write().
Referenced by main().
int main | ( | ) |
Definition at line 35 of file iostream_server.cpp.
References websocketpp::log::alevel::all, websocketpp::log::alevel::app, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::log::alevel::connect, websocketpp::log::alevel::disconnect, websocketpp::endpoint< connection, config >::get_alog(), websocketpp::server< config >::get_connection(), websocketpp::endpoint< connection, config >::get_elog(), on_message(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::exception::what().