3 #include "ClientSocket.h"
9 #include "WHOHandler.h"
11 #include "mysqlConn.h"
12 #include "HandleInfoHandler.h"
16 #include "EventLogger.h"
31 free_handleinfohandler();
42 // Start Windows Sockets.
43 res = WSAStartup(MAKEWORD(2, 0), &wsadata);
46 perror("Unable to start Windows Sockets");
59 init_handleinfohandler();
67 socket_wait = time(0) + SOCKET_SELECT_TIME;
69 socket_loop(SOCKET_SELECT_TIME);
70 } while(time(0) < socket_wait);
78 int stricmp (const char *s1, const char *s2)
80 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
81 if (s2 == NULL) return *s1;
83 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
85 if (*s1 == '\0') break;
91 int stricmplen (const char *s1, const char *s2, int len)
93 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
94 if (s2 == NULL) return *s1;
97 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
100 if (*s1 == '\0') break;