[Plib-cvs] plib/src/net netSocket.cxx,1.31,1.32
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2005-11-16 15:21:08
|
Update of /cvsroot/plib/plib/src/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3433 Modified Files: netSocket.cxx Log Message: Fixed the segm violation in net_echo Index: netSocket.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/net/netSocket.cxx,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- netSocket.cxx 10 Nov 2005 20:55:54 -0000 1.31 +++ netSocket.cxx 16 Nov 2005 15:20:57 -0000 1.32 @@ -402,10 +402,6 @@ // which is an unportable feature anyway. retval = ::select (FD_SETSIZE, &r, &w, 0, &tv); - if (retval == 0) // timeout - return (-2); - if (retval == -1)// error - return (-1); //remove sockets that had no activity @@ -439,6 +435,11 @@ writes[k] = NULL ; } + if (retval == 0) // timeout + return (-2); + if (retval == -1)// error + return (-1); + return num ; } |