[Top][All Lists]

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

Re: [lwip-users] Is there a way to cancel a call to lwip_select()?

From: Joel Cunningham
Subject: Re: [lwip-users] Is there a way to cancel a call to lwip_select()?
Date: Tue, 27 Sep 2016 22:42:38 +0000 (GMT)

You can achieve the same thing with LwIP by using a UDP socket bound to a port on the loopback adapter.  Sending to the loopback address and port (from another thread) will be received on your UDP socket and will return the select call


On Sep 24, 2016, at 03:56 PM, doragasu <address@hidden> wrote:

I think this is a typical problem. I have lwip_select() blocked waiting
events on several sockets. But now I want to add another socket to the FD
set. When using select() on Linux/BSD, the usual way to solve this problem
is to add another descriptor (e.g. a pipe) to the FD set, so you can do
dummy writes to this descriptor to "cancel" the select() call.

Is it possible to do anything similar when using lwip_select()?

View this message in context: http://lwip.100.n7.nabble.com/Is-there-a-way-to-cancel-a-call-to-lwip-select-tp27390.html
Sent from the lwip-users mailing list archive at Nabble.com.

lwip-users mailing list

reply via email to

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