From 1a592767c6e34bdeb7f30fa063b5e24c57d45894 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 2 Aug 2008 14:12:48 +0000 Subject: - 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 --- src/server/publicServer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server') 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); -- cgit v1.2.3