sockets question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?

2. Does timeout have an effect if a socket is set to nonblocking, or
does it apply to blocking sockets only?

Re: sockets question wrote:
Quoted text here. Click to load it

Per attempt

It only applies to blocking sockets


Site Timeline