summaryrefslogtreecommitdiff
path: root/include/client.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-17 20:29:34 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-17 20:29:34 +0000
commit437da38a26548714e6e1640722148f0f9f601ccb (patch)
tree3bc6a5a0903211e2d1ffa4fd9b3e6e467d413ecf /include/client.h
parent51aae47ae08ad61507f219c24ed6d9321c866f45 (diff)
<Oroborus> - opravena chyba, clent nacital iba _jeden_ sietovy packet za 50 ms ( ano aj ked ich prislo viacej)
<Oroborus> - server pinguje clientov a na zaklade toho client vie, ci server nespadol <Oroborus> - publicserver sa da korektne vypnut signalom SIGQUIT <Oroborus> - publicserver bol pretiahnuty cez valgrind, teraz za pocet volani funkcie malloc rovna poctu volani funkcie free <Oroborus> - v sietovom multiplayeri sa da chodit cez teleporty a strielat do teleportov <Oroborus> - do rur sa da siez strielat git-svn-id: http://opensvn.csie.org/tuxanci_ng@24 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/client.h')
-rw-r--r--include/client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/client.h b/include/client.h
index 6aa4d58..6c827f7 100644
--- a/include/client.h
+++ b/include/client.h
@@ -5,7 +5,8 @@
#if defined SUPPORT_NET_UNIX_UDP || defined SUPPORT_NET_SDL_UDP
-#define CLIENT_TIMEOUT 2500
+#define CLIENT_TIMEOUT 2500
+#define SERVER_TIMEOUT_ALIVE 5000
#endif
@@ -19,6 +20,7 @@ extern void quitTcpClient();
extern int initUdpClient(char *ip, int port);
extern void eventPingServer();
extern void selectClientUdpSocket();
+extern void refreshPingServerAlive();
extern void quitUdpClient();
#endif
@@ -26,6 +28,8 @@ extern void quitUdpClient();
extern int initSdlUdpClient(char *ip, int port);
extern void eventPingServer();
extern void selectClientSdlUdpSocket();
+extern void refreshPingServerAlive();
+extern bool_t isServerAlive();
extern void quitSdlUdpClient();
#endif