changed Makefile; build all commands as an own file
[NeonServV5.git] / ClientSocket.h
index de08e8c605e504c973b908326b10effcff995471..380e051951522ebaef2a5f602f23e9c67e52f493 100644 (file)
@@ -22,8 +22,12 @@ struct ClientSocket {
     int port;
     char *pass;
     struct UserNode *user;
+    unsigned long traffic_in;
+    unsigned long traffic_out;
+    time_t connection_time;
        
-       int botid;
+       int botid : 16;
+    int clientid : 16;
     
     struct ClientSocket *next;
 };
@@ -35,5 +39,6 @@ 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 free_sockets();
 
 #endif
\ No newline at end of file