Re: recv() blocking for non-blocking socket

2001-09-10 Thread Corinna Vinschen
On Mon, Sep 10, 2001 at 01:32:45PM -0400, Omid Roshan-Afshar wrote: > Alright, thanks alot. Is there a temporary work-around? Use blocking sockets ;-) Otherwise, try a developers snapshot of Cygwin. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Dev

Re: recv() blocking for non-blocking socket

2001-09-10 Thread Omid Roshan-Afshar
Alright, thanks alot. Is there a temporary work-around? On Mon, 10 Sep 2001, Corinna Vinschen wrote: > On Mon, Sep 10, 2001 at 11:38:40AM -0400, Omid Roshan-Afshar wrote: > > I've looked through the archive, and I found > > some discussion about using accept() on non-blocking > > sockets, but no

Re: recv() blocking for non-blocking socket

2001-09-10 Thread Omid Roshan-Afshar
Here is a simple version of what I'm doing: /* Start of source code */ #define FAIL (1) { int sock_handle; char errmsg[1024]; int sockAddrSize; struct sockaddr_in serverAddr; char *address; int port; int true; true = 1; address = "127.0.0.1"; port = 5001; sock_handle = s

Re: recv() blocking for non-blocking socket

2001-09-10 Thread Corinna Vinschen
On Mon, Sep 10, 2001 at 11:38:40AM -0400, Omid Roshan-Afshar wrote: > I've looked through the archive, and I found > some discussion about using accept() on non-blocking > sockets, but none on recv(). If someone could spot > any stupid errors in the following code, that would > be great. > > {

Re: recv() blocking for non-blocking socket

2001-09-10 Thread egor duda
Hi! Monday, 10 September, 2001 Omid Roshan-Afshar [EMAIL PROTECTED] wrote: ORA> I've looked through the archive, and I found ORA> some discussion about using accept() on non-blocking ORA> sockets, but none on recv(). If someone could spot ORA> any stupid errors in the following code, that would

recv() blocking for non-blocking socket

2001-09-10 Thread Omid Roshan-Afshar
I've looked through the archive, and I found some discussion about using accept() on non-blocking sockets, but none on recv(). If someone could spot any stupid errors in the following code, that would be great. { int true = 1; if (ioctl(sock_handle, FIONBIO, &true) != 0) { if (err