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


version 1.10 version 1.11
Line 1
 
Line 1
   
 /*  /*
  * static char *rcsid_loop_c =   * static char *rcsid_loop_c =
  *    "$Id: loop.c,v 1.10 2001/04/06 00:43:26 michtoen Exp $";   *    "$Id: loop.c,v 1.11 2001/04/06 19:08:03 michtoen Exp $";
  */   */
   
 /*  /*
Line 38
 
Line 38
 #include <sockproto.h>  #include <sockproto.h>
 #endif  #endif
   
 #ifndef WIN32 // ---win32 exclude unix headers  #ifndef WIN32 /* ---win32 exclude unix headers */
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/time.h>  #include <sys/time.h>
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <netdb.h>  #include <netdb.h>
 #endif // end win32  #endif /* end win32 */
   
 #ifdef HAVE_UNISTD_H  #ifdef HAVE_UNISTD_H
 #include <unistd.h>  #include <unistd.h>
Line 127
 
Line 127
      * or no more characters to read.       * or no more characters to read.
      */       */
     do {      do {
 #ifdef WIN32 // ***win32: change oldsocket read() to recv()  #ifdef WIN32 /* ***win32: change oldsocket read() to recv() */
  stat = recv(ns->fd, ns->inbuf.buf + ns->inbuf.len, 1,0);   stat = recv(ns->fd, ns->inbuf.buf + ns->inbuf.len, 1,0);
   
  if (stat==-1 && WSAGetLastError() !=WSAEWOULDBLOCK) {   if (stat==-1 && WSAGetLastError() !=WSAEWOULDBLOCK) {


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