#include <iostream>
#include <sstream>
#include <websocketpp/config/debug.hpp>
#include <websocketpp/config/core.hpp>
#include <websocketpp/server.hpp>
#include <websocketpp/client.hpp>
Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::core > | server |
typedef websocketpp::client< websocketpp::config::core > | client |
NOTE: the "server" config is being used for the client here because we don't want to pull in the real RNG. More... | |
typedef websocketpp::config::core::message_type::ptr | message_ptr |
Functions | |
void | echo_func (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
std::string | run_server_test (std::string input, bool log=false) |
std::string | run_server_test (server &s, std::string input, bool log=false) |
Definition at line 38 of file connection_tu2.hpp.
NOTE: the "server" config is being used for the client here because we don't want to pull in the real RNG.
A better way to do this might be a custom client config with the RNG explicitly stubbed out.
Definition at line 42 of file connection_tu2.hpp.
Definition at line 43 of file connection_tu2.hpp.
void echo_func | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 30 of file connection_tu2.cpp.
References websocketpp::endpoint< connection, config >::send().
Referenced by BOOST_AUTO_TEST_CASE().
std::string run_server_test | ( | std::string | input, |
bool | log = false |
||
) |
Definition at line 34 of file connection_tu2.cpp.
References run_server_test().
Referenced by BOOST_AUTO_TEST_CASE(), and run_server_test().
std::string run_server_test | ( | server & | s, |
std::string | input, | ||
bool | log = false |
||
) |
Definition at line 39 of file connection_tu2.cpp.
References websocketpp::log::elevel::all, websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::endpoint< connection, config >::clear_error_channels(), websocketpp::server< config >::get_connection(), websocketpp::endpoint< connection, config >::set_access_channels(), and websocketpp::endpoint< connection, config >::set_error_channels().