added "first time" configuration (set up first bot and admin user)
[NeonServV5.git] / src / ClientSocket.h
index a5ba352067377e1323ab4fa252fef3fe51856dbb..78e207c0144b2372ca0967701d13c01691c87895 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;
 };
 
@@ -74,9 +83,13 @@ int close_socket(struct ClientSocket *client);
 int disconnect_socket(struct ClientSocket *client);
 int write_socket_force(struct ClientSocket *client, char* msg, int len);
 int write_socket(struct ClientSocket *client, char* msg, int len);
-void socket_loop(int timeout_seconds);
+#ifdef HAVE_THREADS
+int clientsocket_parseorder_top(unsigned int tid);
+#endif
+int 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