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

Go to the source code of this file.

Typedefs

typedef websocketpp::server< websocketpp::config::asioserver_plain
 
typedef websocketpp::server< websocketpp::config::asio_tlsserver_tls
 
typedef websocketpp::lib::shared_ptr< boost::asio::ssl::context > context_ptr
 

Functions

template<typename EndpointType >
void on_message (EndpointType *s, websocketpp::connection_hdl hdl, typename EndpointType::message_ptr msg)
 
std::string get_password ()
 
context_ptr on_tls_init (websocketpp::connection_hdl hdl)
 
int main ()
 

Typedef Documentation

◆ server_plain

◆ server_tls

◆ context_ptr

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

Definition at line 17 of file echo_server_both.cpp.

Function Documentation

◆ on_message()

template<typename EndpointType >
void on_message ( EndpointType *  s,
websocketpp::connection_hdl  hdl,
typename EndpointType::message_ptr  msg 
)

Definition at line 22 of file echo_server_both.cpp.

References websocketpp::exception::what().

◆ get_password()

std::string get_password ( )

Definition at line 38 of file echo_server_both.cpp.

Referenced by on_tls_init().

◆ on_tls_init()

Definition at line 42 of file echo_server_both.cpp.

References get_password().

Referenced by main().

◆ main()