added experimental multi thread support
[NeonServV5.git] / src / ClientSocket.h
index a5ba352067377e1323ab4fa252fef3fe51856dbb..4073a23b38570778980337c5c1e575d0b6466bc9 100644 (file)
 #define SOCKET_FLAG_HAVE_SSL  0x80
 #define SOCKET_FLAG_QUITTED   0x100
 #define SOCKET_FLAG_FAST_JUMP 0x200
+#define SOCKET_FLAG_SILENT    0x400
+
+#define SOCKET_HAVE_BOTCLASSVALUE1 0x10000000
+#define SOCKET_HAVE_BOTCLASSVALUE2 0x20000000
+#define SOCKET_HAVE_BOTCLASSVALUE3 0x40000000
 
 #define BUF_SIZ 512
 
@@ -65,6 +70,10 @@ struct ClientSocket {
        int botid : 16;
     int clientid : 16;
     
+    void *botclassvalue1;
+    void *botclassvalue2;
+    void *botclassvalue3;
+    
     struct ClientSocket *next;
 };
 
@@ -77,6 +86,7 @@ int write_socket(struct ClientSocket *client, char* msg, int len);
 void socket_loop(int timeout_seconds);
 void putsock(struct ClientSocket *client, const char *text, ...) PRINTF_LIKE(2, 3);
 struct ClientSocket* getBots(int flags, struct ClientSocket* last_bot);
+void init_sockets();
 void free_sockets();
 
 #endif
\ No newline at end of file