lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] How we can set timeout in blocking socket


From: Kieran Mansley
Subject: Re: [lwip-users] How we can set timeout in blocking socket
Date: Wed, 03 Dec 2008 14:24:16 +0000

On Wed, 2008-12-03 at 22:15 +0800, yueyue papa wrote:
> I am confused
>  
> >>You can use the SO_RCVTIMEO socket option to set the recv()
> operation's timeout
> it means I could set receive timeout for receive timeout, but I could
> not use it for connect timeout. Am I right?
> So write is is not time out, 
> Listen is no timeout

That is correct.

listen() is not normally a blocking call anyway.

recv() can time out if you set SO_RCVTIMEO

accept() will also time out if you set SO_RCVTIMEO

connect() and write() would need support for SO_CONTIMEO and SO_SNDTIMEO
which are not implemented (yet) in lwIP.

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]