lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Query amount of free buffers


From: address@hidden
Subject: Re: [lwip-users] Query amount of free buffers
Date: Sun, 21 Mar 2010 13:21:35 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

Marco Jakobs wrote:
Am 20.03.2010 22:00, schrieb Kieran Mansley:
Could you not just use a non-blocking write call, and try again later
if it would block as this would mean that the buffers were probably
all in use.
You can either set the netconn to be non-blocking by default, or add 
NETCONN_DONTBLOCK to the API flags when you call netconn_write (I think).

This would be also a good option, as i'm using all my netconn_rcv with
the timeout option ... bus as far as i can read in the list, the timeout
or non-blocking implementation for the netconn interface has not been
implemented right now.

If they are, how can i use a non-blocking netconn_write?
I have implemented this in CVS HEAD after 1.3.2: either call netconn_set_nonblocking(conn, 1) or pass NETCONN_DONTBLOCK to netconn_write in the 'apiflags' parameter.

Simon




reply via email to

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