Difference for socket/lowlevel.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
   
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 144
 
Line 144
  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 */
Line 201
 
Line 199
  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 */


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:36