version 1.10 | | version 1.11 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_sockets_c = | | * static char *rcsid_sockets_c = |
* "$Id: lowlevel.c,v 1.10 2005/05/03 19:31:28 ryo_saeba Exp $"; | | * "$Id: lowlevel.c,v 1.11 2005/09/04 16:58:13 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
LOG(llevDebug,"Connection closed by client\n"); | | LOG(llevDebug,"Connection closed by client\n"); |
else | | else |
{ | | { |
perror("ReadPacket got an error."); /* ***win32 <- for what is this instead of log? */ | | |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); | | LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); |
} | | } |
return -1; /* kick this user! */ | | return -1; /* kick this user! */ |
} | | } |
#else | | #else |
if (errno != EAGAIN && errno !=EWOULDBLOCK) { | | if (errno != EAGAIN && errno !=EWOULDBLOCK) { |
perror("ReadPacket got an error."); | | LOG(llevDebug, "ReadPacket got error %s, returning 0\n", strerror_local(errno)); |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",errno); | | |
} | | } |
#endif | | #endif |
return 0; /*Error */ | | return 0; /*Error */ |
| | |
LOG(llevDebug,"Connection closed by client\n"); | | LOG(llevDebug,"Connection closed by client\n"); |
else | | else |
{ | | { |
perror("ReadPacket got an error."); | | |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); | | LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); |
} | | } |
return -1; /* kick this user! */ | | return -1; /* kick this user! */ |
} | | } |
#else | | #else |
if (errno != EAGAIN && errno !=EWOULDBLOCK) { | | if (errno != EAGAIN && errno !=EWOULDBLOCK) { |
perror("ReadPacket got an error."); | | LOG(llevDebug, "ReadPacket got error %s, returning 0\n", strerror_local(errno)); |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",errno); | | |
} | | } |
#endif | | #endif |
return 0; /*Error */ | | return 0; /*Error */ |