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
In reply to nonblocking socket back to blocking by netrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |