NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
timers.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <exception>
#include <iostream>
#include <websocketpp/common/thread.hpp>
#include <websocketpp/transport/asio/endpoint.hpp>
#include <websocketpp/transport/asio/security/tls.hpp>
#include <websocketpp/concurrency/none.hpp>
#include <websocketpp/http/request.hpp>
#include <websocketpp/http/response.hpp>
#include <websocketpp/logger/stub.hpp>
#include <boost/asio.hpp>
Include dependency graph for timers.cpp:

Go to the source code of this file.

Classes

struct  config
 
struct  mock_con
 
struct  mock_endpoint
 

Macros

#define BOOST_TEST_MODULE   transport_asio_timers
 

Typedefs

typedef websocketpp::lib::shared_ptr< boost::asio::ssl::context > context_ptr
 
typedef websocketpp::transport::asio::connection< configcon_type
 
typedef websocketpp::lib::shared_ptr< mock_conconnection_ptr
 

Functions

void run_dummy_server (int port)
 
void run_test_timer (long value)
 
context_ptr on_tls_init (websocketpp::connection_hdl)
 
 BOOST_AUTO_TEST_CASE (tls_handshake_timeout)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   transport_asio_timers

Definition at line 28 of file timers.cpp.

Typedef Documentation

◆ context_ptr

typedef websocketpp::lib::shared_ptr<boost::asio::ssl::context> context_ptr

Definition at line 109 of file timers.cpp.

◆ con_type

◆ connection_ptr

typedef websocketpp::lib::shared_ptr<mock_con> connection_ptr

Definition at line 138 of file timers.cpp.

Function Documentation

◆ run_dummy_server()

void run_dummy_server ( int  port)

◆ run_test_timer()

void run_test_timer ( long  value)

Definition at line 81 of file timers.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ on_tls_init()

Definition at line 110 of file timers.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ BOOST_AUTO_TEST_CASE()