3 #include "ClientSocket.h"
9 #include "WHOHandler.h"
11 #include "mysqlConn.h"
12 #include "HandleInfoHandler.h"
16 #include "EventLogger.h"
30 free_handleinfohandler();
45 init_handleinfohandler();
51 socket_wait = time(0) + SOCKET_SELECT_TIME;
53 socket_loop(SOCKET_SELECT_TIME);
54 } while(time(0) < socket_wait);
62 int stricmp (const char *s1, const char *s2)
64 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
65 if (s2 == NULL) return *s1;
67 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
69 if (*s1 == '\0') break;
75 int stricmplen (const char *s1, const char *s2, int len)
77 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
78 if (s2 == NULL) return *s1;
81 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
84 if (*s1 == '\0') break;