diff options
| author | Dusan Durech <dusan.d@centrum.sk> | 2008-10-31 15:03:06 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan.d@centrum.sk> | 2008-10-31 15:03:06 +0100 |
| commit | b361c7bc3532f22caf053b779ba970de8c346893 (patch) | |
| tree | 428db786fb7ea006dd2767d79b11db3c9526076a /src/base/server.c | |
| parent | 26958da9d09934cc162fafc7dd159bf449858c16 (diff) | |
podpora downServera v gameServery ;)
Diffstat (limited to 'src/base/server.c')
| -rw-r--r-- | src/base/server.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/base/server.c b/src/base/server.c index f98ae2f..282d135 100644 --- a/src/base/server.c +++ b/src/base/server.c @@ -30,6 +30,7 @@ #include "index.h" #include "serverSelect.h" #include "serverSendMsg.h" +#include "downServer.h" #ifndef PUBLIC_SERVER # include "screen_world.h" @@ -249,6 +250,8 @@ int initServer(char *ip4, int port4, char *ip6, int port6) return -1; } + initDownServer(ip4, port4); + return ret; } @@ -340,13 +343,16 @@ void eventServer() #ifndef PUBLIC_SERVER int count; - - do { restartSelect(); + setServerUdpSelect(); + setDownServerSelect(); + actionSelect(); + count = selectServerUdpSocket(); + selectDownServerSocket(); } while (count > 0); #endif @@ -356,11 +362,13 @@ void eventServer() restartSelect(); setServerUdpSelect(); + setDownServerSelect(); ret = actionSelect(); if (ret > 0) { selectServerUdpSocket(); + selectDownServerSocket(); } #endif @@ -379,4 +387,6 @@ void quitServer() destroyTimer(listServerTimer); quitUdpServer(); + + quitDownServer(); } |