#include <string>
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) |
char * | printWsaErrorCode () |
Return the last windows error code as a string and reset the error state. More... | |
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 (std::string val) |
Return a boolean value given a string of "true" or "false" (case-insensitive). More... |
|
Convert a bool value to a string and return the string.
Definition at line 81 of file StaticFunctions.cpp. Referenced by Config::save(), Config::setValue(), VirtualCircuitTableEntry::toStream(), TimerNode::toStream(), and Node::toStream().
|
|
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. |
|
Return a boolean value given a string of "true" or "false" (case-insensitive).
Definition at line 95 of file StaticFunctions.cpp. Referenced by Config::getBool(), Config::readBool(), and Config::set().
|
|
A wrapper around the unthreadsafe function "gethostbyaddr".
Definition at line 45 of file StaticFunctions.cpp. Referenced by IpAddress::getHostname().
|
|
A wrapper around the unthreadsafe function "gethostbyname".
Definition at line 26 of file StaticFunctions.cpp. Referenced by IpAddress::setIpAddress().
|
|
Definition at line 14 of file StaticFunctions.cpp. |
|
Definition at line 59 of file StaticFunctions.cpp. |