NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
server.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <websocketpp/config/core.hpp>
#include <websocketpp/server.hpp>
Include dependency graph for server.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   server
 

Typedefs

typedef websocketpp::server< websocketpp::config::coreserver
 
typedef websocketpp::config::core::message_type::ptr message_ptr
 

Functions

std::string run_server_test (server &s, std::string input)
 
void echo_func (server *s, websocketpp::connection_hdl hdl, message_ptr msg)
 
bool validate_func_subprotocol (server *s, std::string *out, std::string accept, websocketpp::connection_hdl hdl)
 
void open_func_subprotocol (server *s, std::string *out, websocketpp::connection_hdl hdl)
 
 BOOST_AUTO_TEST_CASE (basic_websocket_request)
 
 BOOST_AUTO_TEST_CASE (invalid_websocket_version)
 
 BOOST_AUTO_TEST_CASE (unimplemented_websocket_version)
 
 BOOST_AUTO_TEST_CASE (list_subprotocol_empty)
 
 BOOST_AUTO_TEST_CASE (list_subprotocol_one)
 
 BOOST_AUTO_TEST_CASE (accept_subprotocol_one)
 
 BOOST_AUTO_TEST_CASE (accept_subprotocol_invalid)
 
 BOOST_AUTO_TEST_CASE (accept_subprotocol_two)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   server

Definition at line 28 of file server.cpp.

Typedef Documentation

Definition at line 38 of file server.cpp.

Function Documentation

void echo_func ( server s,
websocketpp::connection_hdl  hdl,
message_ptr  msg 
)

Definition at line 86 of file server.cpp.

References websocketpp::endpoint< connection, config >::send().

bool validate_func_subprotocol ( server s,
std::string *  out,
std::string  accept,
websocketpp::connection_hdl  hdl 
)
void open_func_subprotocol ( server s,
std::string *  out,
websocketpp::connection_hdl  hdl 
)
BOOST_AUTO_TEST_CASE ( basic_websocket_request  )
BOOST_AUTO_TEST_CASE ( invalid_websocket_version  )
BOOST_AUTO_TEST_CASE ( unimplemented_websocket_version  )