From d9e19a0d5ba8a797e12052e29f9c3a945d2331bc Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 14 Mar 2008 22:11:31 +0000 Subject: - upravy v kode, lepsia synchronizacia - clienty posielaju serveru "pingy", ak server isty cas ping od client anedostane tak ho dpoji ( nespojive UDP ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@16 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- include/server.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/server.h') diff --git a/include/server.h b/include/server.h index c7d4df9..328e2d3 100644 --- a/include/server.h +++ b/include/server.h @@ -9,12 +9,14 @@ #include "tcp.h" #include "udp.h" +#define SERVER_TIMEOUT 5000 + typedef struct client_struct { sock_tcp_t *socket_tcp; sock_udp_t *socket_udp; int status; - + Uint32 lastPing; tux_t *tux; buffer_t *buffer; } client_t; -- cgit v1.2.3