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

Go to the source code of this file.

Classes

struct  connection_extension
 
struct  stub_config
 
struct  debug_config_client
 
struct  debug_config_client::transport_config
 
struct  connection_setup
 

Macros

#define BOOST_TEST_MODULE   connection
 

Typedefs

typedef websocketpp::client< debug_config_clientdebug_client
 
typedef websocketpp::server< debug_config_clientdebug_server
 

Functions

 BOOST_AUTO_TEST_CASE (basic_http_request)
 
void validate_func (server *s, websocketpp::connection_hdl hdl, message_ptr msg)
 
bool validate_set_ua (server *s, websocketpp::connection_hdl hdl)
 
void http_func (server *s, websocketpp::connection_hdl hdl)
 
void defer_http_func (server *s, bool *deferred, websocketpp::connection_hdl hdl)
 
void check_on_fail (server *s, websocketpp::lib::error_code ec, bool &called, websocketpp::connection_hdl hdl)
 
void on_open_print (server *s, websocketpp::connection_hdl hdl)
 
void fail_on_open (websocketpp::connection_hdl)
 
void fail_on_http (websocketpp::connection_hdl)
 
 BOOST_AUTO_TEST_CASE (connection_extensions)
 
 BOOST_AUTO_TEST_CASE (basic_websocket_request)
 
 BOOST_AUTO_TEST_CASE (http_request)
 
 BOOST_AUTO_TEST_CASE (deferred_http_request)
 
 BOOST_AUTO_TEST_CASE (request_no_server_header)
 
 BOOST_AUTO_TEST_CASE (request_no_server_header_override)
 
 BOOST_AUTO_TEST_CASE (basic_client_websocket)
 
 BOOST_AUTO_TEST_CASE (set_max_message_size)
 
 BOOST_AUTO_TEST_CASE (websocket_fail_parse_error)
 
 BOOST_AUTO_TEST_CASE (websocket_fail_invalid_version)
 
 BOOST_AUTO_TEST_CASE (websocket_fail_unsupported_version)
 
 BOOST_AUTO_TEST_CASE (websocket_fail_upgrade_required)
 
 BOOST_AUTO_TEST_CASE (client_handshake_timeout_race1)
 
 BOOST_AUTO_TEST_CASE (client_handshake_timeout_race2)
 
 BOOST_AUTO_TEST_CASE (server_handshake_timeout_race1)
 
 BOOST_AUTO_TEST_CASE (server_handshake_timeout_race2)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   connection

Definition at line 28 of file connection.cpp.

Typedef Documentation

Function Documentation

BOOST_AUTO_TEST_CASE ( basic_http_request  )

Definition at line 41 of file connection.cpp.

References run_server_test(), and websocketpp::user_agent.

void validate_func ( server s,
websocketpp::connection_hdl  hdl,
message_ptr  msg 
)
bool validate_set_ua ( server s,
websocketpp::connection_hdl  hdl 
)
void defer_http_func ( server s,
bool *  deferred,
websocketpp::connection_hdl  hdl 
)
void check_on_fail ( server s,
websocketpp::lib::error_code  ec,
bool &  called,
websocketpp::connection_hdl  hdl 
)
void on_open_print ( server s,
websocketpp::connection_hdl  hdl 
)
void fail_on_open ( websocketpp::connection_hdl  )

Definition at line 200 of file connection.cpp.

void fail_on_http ( websocketpp::connection_hdl  )

Definition at line 203 of file connection.cpp.

BOOST_AUTO_TEST_CASE ( basic_websocket_request  )
BOOST_AUTO_TEST_CASE ( http_request  )
BOOST_AUTO_TEST_CASE ( server_handshake_timeout_race1  )
BOOST_AUTO_TEST_CASE ( server_handshake_timeout_race2  )