3 #include "ClientSocket.h"
9 #include "WHOHandler.h"
11 #include "mysqlConn.h"
12 #include "HandleInfoHandler.h"
16 #include "EventLogger.h"
31 free_handleinfohandler();
47 init_handleinfohandler();
55 socket_wait = time(0) + SOCKET_SELECT_TIME;
57 socket_loop(SOCKET_SELECT_TIME);
58 } while(time(0) < socket_wait);
66 int stricmp (const char *s1, const char *s2)
68 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
69 if (s2 == NULL) return *s1;
71 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
73 if (*s1 == '\0') break;
79 int stricmplen (const char *s1, const char *s2, int len)
81 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
82 if (s2 == NULL) return *s1;
85 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
88 if (*s1 == '\0') break;