2008/3/20, Pettinato, Jim <address@hidden>:
Do you really need to implement another queue, or could you just have it
return an error eg ERR_WOULD_BLOCK if there is no longer room on the
existing TCP send queue, and let the task retry later?
First, i think that this could be very usefull, and can avoid task caller blocks.
After, lwip should implement:
- manage O_NONBLOCK in the sockets layer, for tx.
- manage flag MSG_DONTWAIT for tx
- lwip_select() triggered by tx event.
Now i'm using only a select function, with socket listener for incoming connection and rx data from connected socket. It is really very efficient, and could be close to perfect if application can manage send operation in select too.
Note: i want to say: LWIP code is really a GOOD WORK!!!
Piero.