diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-02 14:12:48 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-02 14:12:48 +0000 |
| commit | 1a592767c6e34bdeb7f30fa063b5e24c57d45894 (patch) | |
| tree | e21ebcc5bc79cc5b6a6dfb4b9635ff95c52842c4 /src/server | |
| parent | 6b805af42cba72e190d94ffa6d1dd7e44d9dfb61 (diff) | |
- gameserver podporuje clientov z IPv4-UDP IPv4-TCP IPv6-UDP IPv6-TCP
- client sa moze pripojit na gameserver, ktory podporuje IPv4-UDP IPv4-TCP IPv6-UDP IPv6-TCP ( nie, nie je to
samozrejmost :) )
- client ma parametre --tcp , --udp ( ak sa neuvedie, implicitne sa berie --udp )
- btw. ladit, ladit, ladit
git-svn-id: http://opensvn.csie.org/tuxanci_ng@187 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/publicServer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/publicServer.c b/src/server/publicServer.c index 637ac54..7d434d7 100644 --- a/src/server/publicServer.c +++ b/src/server/publicServer.c @@ -222,7 +222,7 @@ static int initPublicServerNetwork() if( strcmp(ip6, "none") == 0 ) { - p_ip6= NULL; + p_ip6 = NULL; } port4 = atoi( getSetting("PORTv4", "--port", "2200") ); @@ -230,7 +230,7 @@ static int initPublicServerNetwork() //ret = initNetMulitplayerPublicServer(p_ip4, port4, p_ip6, port6); - ret = initNetMuliplayer(NET_GAME_TYPE_SERVER, p_ip4, port4, PROTO_TCPv4); + ret = initNetMuliplayerForGameServer(p_ip4, port4, p_ip6, port6); return ret; } @@ -343,7 +343,6 @@ void quitPublicServer() int startPublicServer() { #ifndef __WIN32__ - signal(SIGPIPE, SIG_IGN); signal(SIGINT, my_handler_quit); signal(SIGTERM, my_handler_quit); signal(SIGQUIT, my_handler_quit); |