netrom has asked for the wisdom of the Perl Monks concerning the following question:
I have a master sending commands to all his children in nonblocking mode, this works fine, but I like to offer the option of waiting for reply if needed. (aka like setup).
But there is no flag O_BLOCK or similar for fcntl. what are the flags to wait for.
Currently I use a select for a timeout period before reading from the socket but this is not very elegant.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: nonblocking socket back to blocking
by BrowserUk (Patriarch) on Oct 17, 2007 at 00:06 UTC | |
|
Re: nonblocking socket back to blocking (select)
by tye (Sage) on Oct 17, 2007 at 01:27 UTC | |
by netrom (Acolyte) on Oct 17, 2007 at 10:22 UTC | |
|
Re: nonblocking socket back to blocking
by Somni (Friar) on Oct 16, 2007 at 23:25 UTC |