|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
It is considered beerware. Prost. Skol. Cheers or whatever.
|
|
|
|
|
Some of the stuff below is stolen from Fefes example libowfat httpd.
|
|
|
|
|
|
|
|
|
|
$Id: opentracker.c,v 1.194 2008/10/05 12:30:06 erdgeist Exp $ */
|
|
|
|
|
$Id: opentracker.c,v 1.195 2008/10/06 02:03:08 erdgeist Exp $ */
|
|
|
|
|
|
|
|
|
|
/* System */
|
|
|
|
|
#include <string.h>
|
|
|
|
@ -202,8 +202,6 @@ static void server_mainloop( ) {
|
|
|
|
|
handle_accept( i );
|
|
|
|
|
else if( (int)cookie == FLAG_UDP )
|
|
|
|
|
handle_udp4( i );
|
|
|
|
|
else if( (int)cookie == FLAG_MCA )
|
|
|
|
|
handle_livesync(i);
|
|
|
|
|
else
|
|
|
|
|
handle_read( i );
|
|
|
|
|
}
|
|
|
|
@ -233,7 +231,7 @@ static void server_mainloop( ) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
|
|
|
|
|
static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
|
|
|
|
|
int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4();
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
@ -437,4 +435,4 @@ while( scanon ) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.194 $\n";
|
|
|
|
|
const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.195 $\n";
|
|
|
|
|