00001 #ifndef __STATICFUNCTIONS_H 00002 #define __STATICFUNCTIONS_H 00003 00004 #include <string> 00005 00006 struct tm* 00007 threadsafe_gmtime(const time_t* timer); 00008 00009 int 00010 threadsafe_gethostbyname(struct hostent* he, const char* name); 00011 00012 int 00013 threadsafe_gethostbyaddr(struct hostent* he, const char* addr, int len, int type); 00014 00015 char* 00016 threadsafe_inet_ntoa(struct in_addr in); 00017 00018 char* 00019 printWsaErrorCode(); 00020 00021 unsigned int 00022 getPortFromSocket(OS_SPEC_SOCKET_TYPE sock); 00023 00024 char* 00025 boolToString(bool val); 00026 00027 bool 00028 stringToBool(std::string val); 00029 00030 #endif