Changeset 5628 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Nov 18, 2005, 10:55:08 AM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r5627 r5628 167 167 if (res<length) 168 168 PRINTF(1)("SDLNet_TCP_Send: %s\n", SDLNet_GetError()); 169 170 169 170 return res; 171 171 } 172 172 … … 254 254 nbytestoread = min(_INCOMING_BUFFER_SIZE - self->bufferlength, _LOCAL_BUFFER_SIZE); 255 255 256 //if buffer is full 257 if (nbytestoread<=0) 258 { 259 SDL_Delay(_MSECONDS_SLEEP_FULL_BUFFER); 260 continue; 261 } 262 256 263 nbytesread = SDLNet_TCP_Recv(self->tcpSocket, buffer, nbytestoread); 257 264 … … 282 289 283 290 291 -
branches/network/src/lib/network/network_socket.h
r5625 r5628 10 10 #define _INCOMING_BUFFER_SIZE 10240 11 11 #define _LOCAL_BUFFER_SIZE 1024 12 #define _MSECONDS_SLEEP_FULL_BUFFER 10 12 13 13 14 /* contains memmove and memcpy */
Note: See TracChangeset
for help on using the changeset viewer.