NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::lib::net Namespace Reference

Functions

bool is_little_endian ()
 
uint64_t _htonll (uint64_t src)
 Convert 64 bit value to network byte order. More...
 
uint64_t _ntohll (uint64_t src)
 Convert 64 bit value to host byte order. More...
 

Function Documentation

◆ is_little_endian()

bool websocketpp::lib::net::is_little_endian ( )
inline

Definition at line 45 of file network.hpp.

Referenced by websocketpp::frame::circshift_prepared_key().

◆ _htonll()

uint64_t websocketpp::lib::net::_htonll ( uint64_t  src)
inline

Convert 64 bit value to network byte order.

This method is prefixed to avoid conflicts with operating system level macros for this functionality.

TODO: figure out if it would be beneficial to use operating system level macros for this.

Parameters
srcThe integer in host byte order
Returns
src converted to network byte order

Definition at line 66 of file network.hpp.

References TYP_BIGE, TYP_INIT, and TYP_SMLE.

Referenced by _ntohll(), and BOOST_AUTO_TEST_CASE().

◆ _ntohll()

uint64_t websocketpp::lib::net::_ntohll ( uint64_t  src)
inline

Convert 64 bit value to host byte order.

This method is prefixed to avoid conflicts with operating system level macros for this functionality.

TODO: figure out if it would be beneficial to use operating system level macros for this.

Parameters
srcThe integer in network byte order
Returns
src converted to host byte order

Definition at line 98 of file network.hpp.

References _htonll().

Referenced by websocketpp::frame::get_jumbo_size().