Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::lib Namespace Reference

Namespaces

namespace  asio
 
namespace  net
 
namespace  placeholders
 

Typedefs

typedef boost::scoped_array< unsigned char > unique_ptr_uchar_array
 

Functions

template<typename T >
void clear_function (T &x)
 
std::tm localtime (std::time_t const &time)
 Thread safe cross platform localtime.
 

Typedef Documentation

◆ unique_ptr_uchar_array

typedef boost::scoped_array<unsigned char> websocketpp::lib::unique_ptr_uchar_array

Definition at line 83 of file memory.hpp.

Function Documentation

◆ clear_function()

template<typename T >
void websocketpp::lib::clear_function ( T & x)

Definition at line 97 of file functional.hpp.

97 {
98 x.clear();
99 }

◆ localtime()

std::tm websocketpp::lib::localtime ( std::time_t const & time)
inline

Definition at line 41 of file time.hpp.

41 {
42 std::tm tm_snapshot;
43#if (defined(__MINGW32__) || defined(__MINGW64__))
44 memcpy(&tm_snapshot, ::localtime(&time), sizeof(std::tm));
45#elif (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
46 localtime_s(&tm_snapshot, &time);
47#else
48 localtime_r(&time, &tm_snapshot); // POSIX
49#endif
50 return tm_snapshot;
51}
memcpy((char *) pInfo->slotDescription, s, l)
Here is the call graph for this function:
Here is the caller graph for this function: