This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Non blocking I/O


I am trying to set the the non-block read or write for a 
tcp-socket.

I do the following fcntl(fd, SETFL, O_NONBLOCK) which does not
return any errors. Then a do a read on the fd and it blocks. 

I need a way to do none blocking reads or find out how much data
is pending so I can do the read for just that amount of data.

The same would be nice for writes but not needed.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]