NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   connection

Definition at line 28 of file connection.cpp.

Typedef Documentation

◆ debug_client

◆ debug_server

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

BOOST_AUTO_TEST_CASE ( basic_http_request  )

Definition at line 41 of file connection.cpp.

References run_server_test(), and websocketpp::user_agent.

◆ validate_func()

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

◆ validate_set_ua()

bool validate_set_ua ( server s,
websocketpp::connection_hdl  hdl 
)

◆ http_func()

◆ defer_http_func()

void defer_http_func ( server s,
bool *  deferred,
websocketpp::connection_hdl  hdl 
)

◆ check_on_fail()

void check_on_fail ( server s,
websocketpp::lib::error_code  ec,
bool &  called,
websocketpp::connection_hdl  hdl 
)

◆ on_open_print()

void on_open_print ( server s,
websocketpp::connection_hdl  hdl 
)

◆ fail_on_open()

void fail_on_open ( websocketpp::connection_hdl  )

Definition at line 203 of file connection.cpp.

◆ fail_on_http()

void fail_on_http ( websocketpp::connection_hdl  )

Definition at line 206 of file connection.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( connection_extensions  )

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( basic_websocket_request  )

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( http_request  )

◆ BOOST_AUTO_TEST_CASE() [5/17]

◆ BOOST_AUTO_TEST_CASE() [6/17]

◆ BOOST_AUTO_TEST_CASE() [7/17]

◆ BOOST_AUTO_TEST_CASE() [8/17]

◆ BOOST_AUTO_TEST_CASE() [9/17]

◆ BOOST_AUTO_TEST_CASE() [10/17]

◆ BOOST_AUTO_TEST_CASE() [11/17]

◆ BOOST_AUTO_TEST_CASE() [12/17]

◆ BOOST_AUTO_TEST_CASE() [13/17]

◆ BOOST_AUTO_TEST_CASE() [14/17]

◆ BOOST_AUTO_TEST_CASE() [15/17]

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( server_handshake_timeout_race1  )

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( server_handshake_timeout_race2  )