Changeset 7553 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- May 6, 2006, 1:23:16 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/udp_server_socket.cc
r7540 r7553 100 100 UdpSocket * sock = new UdpSocket( this, packet->address, userId ); 101 101 newSocketList.push_back( sock ); 102 PRINTF(0)("NEW CONNECTION %x\n", packet->address.host ); 102 103 } 103 104 … … 111 112 } 112 113 113 assert( res = 0 ); 114 115 NetworkSocket * result = newSocketList.front(); 116 117 newSocketList.pop_front(); 114 assert( res == 0 ); 115 116 NetworkSocket * result = NULL; 117 118 if ( newSocketList.size() > 0 ) 119 { 120 result = newSocketList.front(); 121 122 newSocketList.pop_front(); 123 } 118 124 119 125 return result; … … 199 205 { 200 206 int channel = SDLNet_UDP_Bind( socket, userId, &ip ); 201 if( channel == userId )207 if( channel != userId ) 202 208 { 203 209 PRINTF(1)("SDLNet_UDP_Bind: %s\n", SDLNet_GetError()); -
branches/network/src/lib/network/udp_socket.cc
r7541 r7553 107 107 } 108 108 109 int channel = SDLNet_UDP_Bind(socket, -1, &ip);109 int channel = SDLNet_UDP_Bind(socket, 1, &ip); 110 110 if ( channel == -1 ) 111 111 {
Note: See TracChangeset
for help on using the changeset viewer.