diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-01 16:53:49 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-01 16:53:49 +0000 |
| commit | 6b805af42cba72e190d94ffa6d1dd7e44d9dfb61 (patch) | |
| tree | f1ba527033730bd1d8d77a90758def337d0459c4 /src/base/net_multiplayer.c | |
| parent | bdd968b726362f55454853799ec7869cd14b9a4c (diff) | |
- experimentalna podpora TCP
- implicitne sa to kompiluje s UDP ( makro SUPPORT_UDP v server.c a client.c )
- ak che niekto skusat TCP, nech si zakomentuje makro SUPPORT_UDP v server.c a client.c a prida makro SUPPORT_TCP
- docasna nefunkcnost IPv6
git-svn-id: http://opensvn.csie.org/tuxanci_ng@186 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/net_multiplayer.c')
| -rw-r--r-- | src/base/net_multiplayer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/net_multiplayer.c b/src/base/net_multiplayer.c index 3404581..f85d287 100644 --- a/src/base/net_multiplayer.c +++ b/src/base/net_multiplayer.c @@ -31,7 +31,7 @@ int getNetTypeGame() return netGameType; } -#ifdef PUBLIC_SERVER +#ifdef OLD_PUBLIC_SERVER int initNetMulitplayerPublicServer(char *ip4, int port4, char *ip6, int port6) { @@ -50,7 +50,7 @@ int initNetMuliplayer(int type, char *ip, int port, int proto) break; case NET_GAME_TYPE_SERVER : - if( initUdpServer(ip, port, proto) != 0 ) + if( initServer(ip, port, proto) != 0 ) { fprintf(stderr, "Unable to inicialize network game as server!\n"); netGameType = NET_GAME_TYPE_NONE; @@ -60,7 +60,7 @@ int initNetMuliplayer(int type, char *ip, int port, int proto) #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT : - if( initUdpClient(ip, port, proto) != 0 ) + if( initClient(ip, port, proto) != 0 ) { fprintf(stderr, "Unable to inicialize network game as client!\n"); netGameType = NET_GAME_TYPE_NONE; @@ -106,12 +106,12 @@ void quitNetMultiplayer() break; case NET_GAME_TYPE_SERVER : - quitUdpServer(); + quitServer(); break; #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT : - quitUdpClient(); + quitClient(); break; #endif default : |