lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7865] implement non-blocking SEND operation (socket)


From: piero
Subject: [lwip-devel] [task #7865] implement non-blocking SEND operation (socket)
Date: Thu, 20 Mar 2008 15:00:28 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

Follow-up Comment #3, task #7865 (project lwip):

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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7865>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/





reply via email to

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