[Top][All Lists]

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

Re: [lwip-devel] [task #7865] implement non-blocking SEND operation(sock

From: Piero 74
Subject: Re: [lwip-devel] [task #7865] implement non-blocking SEND operation(socket)
Date: Thu, 20 Mar 2008 15:48:22 +0100

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!!!


reply via email to

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