|
Posted by Janwillem Borleffs on 12/18/77 11:49
mydejamail@yahoo.co.uk wrote:
> 1. When reading from a socket, how does socket timeout work?
> Will an fgets wait for timeout length per attempt, or timeout is the
> time allowed for repeated fgets attempts, such as in a loop?
>
Per attempt
> 2. Does timeout have an effect if a socket is set to nonblocking, or
> does it apply to blocking sockets only?
It only applies to blocking sockets
JW
Navigation:
[Reply to this message]
|