NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
connection_tu2.hpp File Reference
#include <iostream>
#include <sstream>
#include <websocketpp/config/debug.hpp>
#include <websocketpp/config/core.hpp>
#include <websocketpp/server.hpp>
#include <websocketpp/client.hpp>
Include dependency graph for connection_tu2.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef websocketpp::server< websocketpp::config::coreserver
 
typedef websocketpp::client< websocketpp::config::coreclient
 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)
 

Typedef Documentation

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.

Function Documentation

void echo_func ( server s,
websocketpp::connection_hdl  hdl,
message_ptr  msg 
)
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 
)