diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 22:11:31 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 22:11:31 +0000 |
| commit | d9e19a0d5ba8a797e12052e29f9c3a945d2331bc (patch) | |
| tree | 95e18dfbf1879b5edd973d81003a43955adb141b /include/server.h | |
| parent | 593ac1e25c2053f06cb1b7e29785a695d3c57ad3 (diff) | |
- 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
Diffstat (limited to 'include/server.h')
| -rw-r--r-- | include/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |