lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] socket & select: can i use select with socket in listen mod


From: Piero 74
Subject: [lwip-users] socket & select: can i use select with socket in listen mode?
Date: Mon, 10 Mar 2008 09:46:07 +0100

Hi all.

I read in BSD socket application note, that i can use select to manage IO form multiple sockets, using timeout, so, without blocking calls.

The example shows this idea:

1. create tcp socket in listen mode
2. use select with sd of this socket to wait new connection using timeout and loop.
3. if new connection is available, accept it using new socket, set select for wait both new connection from the first socket and data from second, without block.

this idea allows to wait data from connected socket and wait new connections withou block in accept call.

i saw that option FIONBIO in lwip doesn't have effect in accept call, so, this idea could be usefull for non-blocking io with listen socket

Do you know if lwip implementation of select allows this idea?

Thanks,
Piero

reply via email to

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