On Sun, 19 Sep 2004, ik wrote: > Hi > > I'm trying to convert an old MS-Windows program I'd written into Linux, and the > program uses > Non-Blocking communication.
[...snip...] > opt = fcntl(nsfd, F_GETFD); this should be F_GETFL (and later on F_SETFL). by the way, your code will not work properly (as shown here), because if 'recv' returns due to non-blocking, it will return '-1', with errno set to EAGAIN. i assume you're aware of that, thought... -- guy "For world domination - press 1, or dial 0, and please hold, for the creator." -- nob o. dy ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]