#include "headers.h"
Go to the source code of this file.
Functions | |
tm * | threadsafe_gmtime (const time_t *timer) |
int | threadsafe_gethostbyname (struct hostent *he, const char *name) |
A wrapper around the unthreadsafe function "gethostbyname". More... | |
int | threadsafe_gethostbyaddr (struct hostent *he, const char *addr, int len, int type) |
A wrapper around the unthreadsafe function "gethostbyaddr". More... | |
char * | threadsafe_inet_ntoa (struct in_addr in) |
unsigned int | getPortFromSocket (OS_SPEC_SOCKET_TYPE sock) |
Return the port that the socket is listening on, in standard decimal form. More... | |
char * | boolToString (bool val) |
Convert a bool value to a string and return the string. More... | |
bool | stringToBool (string value) |
Return a boolean value given a string of "true" or "false" (case-insensitive). More... | |
char * | printWsaErrorCode () |
Return the last windows error code as a string and reset the error state. More... | |
Variables | |
Mutex | g_gmtimeLock |
Mutex | g_getHostLock |
Mutex | g_inetNtoaLock |
|
Convert a bool value to a string and return the string.
Definition at line 81 of file StaticFunctions.cpp. |
|
Return the port that the socket is listening on, in standard decimal form.
Definition at line 69 of file StaticFunctions.cpp. |
|
Return the last windows error code as a string and reset the error state.
Definition at line 109 of file StaticFunctions.cpp. Referenced by TcpConnection::accept(), TcpConnection::connect(), TcpConnection::createListeningSocket(), LinkLayerInterface::pollAllSocketsImpl(), TcpConnection::read(), NpPacket::read(), TcpConnection::write(), and SslConnection::write().
|
|
Return a boolean value given a string of "true" or "false" (case-insensitive).
Definition at line 95 of file StaticFunctions.cpp. |
|
A wrapper around the unthreadsafe function "gethostbyaddr".
Definition at line 45 of file StaticFunctions.cpp. |
|
A wrapper around the unthreadsafe function "gethostbyname".
Definition at line 26 of file StaticFunctions.cpp. |
|
Definition at line 14 of file StaticFunctions.cpp. |
|
Definition at line 59 of file StaticFunctions.cpp. |
|
Definition at line 10 of file StaticFunctions.cpp. |
|
Definition at line 9 of file StaticFunctions.cpp. |
|
Definition at line 11 of file StaticFunctions.cpp. |