how to select with queue and sockets
Posted: Tue Aug 15, 2017 10:24 am
select only support lwip now, and i need to wait for queue and sockets together, Is there any good ways?
I try to use loopback socket, but failed to conncet, my thought is shown below:
1, I create a socket bind to "127.0.0.1", and another socket to connect to it, trying to get a couple of sockets like pipe.
2, Then I create a thread handling the sockets(the one communicating with srv and the one described in step 1).
3,I create a thread waiting for queue using xQueueReceive, and notify the socket handling thread with a socket described in step 1.
Hower in step 1, I failed to connect to the local srv "127.0.0.1", then i found http://bbs.esp32.com/viewtopic.php?f=13 ... 6367#p2258
is'nt loopback support now?
is there a bettery way to handle this situation?
I try to use loopback socket, but failed to conncet, my thought is shown below:
1, I create a socket bind to "127.0.0.1", and another socket to connect to it, trying to get a couple of sockets like pipe.
2, Then I create a thread handling the sockets(the one communicating with srv and the one described in step 1).
3,I create a thread waiting for queue using xQueueReceive, and notify the socket handling thread with a socket described in step 1.
Hower in step 1, I failed to connect to the local srv "127.0.0.1", then i found http://bbs.esp32.com/viewtopic.php?f=13 ... 6367#p2258
is'nt loopback support now?
is there a bettery way to handle this situation?