X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ClientSocket.h;h=380e051951522ebaef2a5f602f23e9c67e52f493;hb=795115bf680185ae01043bd1222b78bfed8c1d87;hp=de08e8c605e504c973b908326b10effcff995471;hpb=df8d73a91b05864b972d1362dab1995fbdb179f2;p=NeonServV5.git diff --git a/ClientSocket.h b/ClientSocket.h index de08e8c..380e051 100644 --- a/ClientSocket.h +++ b/ClientSocket.h @@ -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