[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: RE : [lwip-users] Some Help Needed Please
From: |
Goldschmidt Simon |
Subject: |
RE: RE : [lwip-users] Some Help Needed Please |
Date: |
Fri, 11 May 2007 08:18:14 +0200 |
> 3/ I'm agree with Kieran, you can use the same socket to send
> and recv (lwIP is not already "thread-safe", but if I think
> this is not a problem for sendto/recvfrom in UDP, I'm not so
Really? Both netconn_recv() and netconn_send() call api_msg_post() which
pends on conn->mbox, and that conn (& mbox) is the same for both
threads.
So when tcpip_thread posts to that mbox, it's unknown which call (recv
or
send) has finished.
> sure for "select"). You can also use another socket to send,
> but don't bind it to 1900/udp...
Simon