diff options
author | erdgeist <> | 2008-10-06 02:03:08 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-06 02:03:08 +0000 |
commit | 17724dde29c488f08338653ac6a98fb7a9fd6d22 (patch) | |
tree | 55ccfaef846dc131d2004b0affbdb66607efb7ae /opentracker.c | |
parent | 01ea1648d8184007cedd8ed19a0b471d774b29aa (diff) |
Make ot_try_bind local again. Also dont handle multi cast udp packets in opentracker.c, ot_livesync.c does it by itself.
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/opentracker.c b/opentracker.c index 6c132be..8ed73f3 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -202,8 +202,6 @@ static void server_mainloop( ) { | |||
202 | handle_accept( i ); | 202 | handle_accept( i ); |
203 | else if( (int)cookie == FLAG_UDP ) | 203 | else if( (int)cookie == FLAG_UDP ) |
204 | handle_udp4( i ); | 204 | handle_udp4( i ); |
205 | else if( (int)cookie == FLAG_MCA ) | ||
206 | handle_livesync(i); | ||
207 | else | 205 | else |
208 | handle_read( i ); | 206 | handle_read( i ); |
209 | } | 207 | } |
@@ -233,7 +231,7 @@ static void server_mainloop( ) { | |||
233 | } | 231 | } |
234 | } | 232 | } |
235 | 233 | ||
236 | int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) { | 234 | static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) { |
237 | int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4(); | 235 | int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4(); |
238 | 236 | ||
239 | #ifdef _DEBUG | 237 | #ifdef _DEBUG |