#include <websocketpp/config/debug_asio_no_tls.hpp>
#include <websocketpp/logger/syslog.hpp>
#include <websocketpp/server.hpp>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | debug_custom |
====== WARNING ======== This example is presently used as a scratch space. More... | |
struct | debug_custom::transport_config |
Typedefs | |
typedef websocketpp::server< debug_custom > | server |
typedef server::message_ptr | message_ptr |
Functions | |
bool | validate (server *, websocketpp::connection_hdl) |
void | on_http (server *s, websocketpp::connection_hdl hdl) |
void | on_fail (server *s, websocketpp::connection_hdl hdl) |
void | on_close (websocketpp::connection_hdl) |
void | on_message (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main () |
typedef websocketpp::server<debug_custom> server |
Definition at line 87 of file debug_server.cpp.
typedef server::message_ptr message_ptr |
Definition at line 94 of file debug_server.cpp.
bool validate | ( | server * | , |
websocketpp::connection_hdl | |||
) |
Definition at line 96 of file debug_server.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), main(), and ndn::nfd::ControlCommand::FieldValidator::optional().
void on_http | ( | server * | s, |
websocketpp::connection_hdl | hdl | ||
) |
Definition at line 101 of file debug_server.cpp.
References websocketpp::endpoint< connection, config >::get_con_from_hdl(), and websocketpp::http::status_code::ok.
Referenced by main().
void on_fail | ( | server * | s, |
websocketpp::connection_hdl | hdl | ||
) |
Definition at line 113 of file debug_server.cpp.
References websocketpp::endpoint< connection, config >::get_con_from_hdl().
Referenced by main().
void on_close | ( | websocketpp::connection_hdl | ) |
Definition at line 119 of file debug_server.cpp.
Referenced by main().
void on_message | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 124 of file debug_server.cpp.
References websocketpp::endpoint< connection, config >::send(), and websocketpp::exception::what().
Referenced by main().
int main | ( | ) |
Definition at line 137 of file debug_server.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_close(), on_fail(), on_http(), on_message(), websocketpp::transport::asio::endpoint< config >::run(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_close_handler(), websocketpp::endpoint< connection, config >::set_fail_handler(), websocketpp::endpoint< connection, config >::set_http_handler(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::transport::asio::endpoint< config >::set_reuse_addr(), websocketpp::endpoint< connection, config >::set_validate_handler(), websocketpp::server< config >::start_accept(), validate(), and websocketpp::exception::what().