lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Question regarding keep alive and more


From: Chen
Subject: Re: [lwip-users] Question regarding keep alive and more
Date: Mon, 16 Jul 2012 11:17:33 -0400

On Thu, 2012-07-12 at 14:03 -0400, Chen wrote:
>
> At 200kb/s and full-size packet, lwip_send will failed once a while

What error does it return?

I will try to catch them ...


> At this point, how can I tell if the failure is from broken line
> (keep alive failed) or out of tx buffer?

Hopefully the error code you get will reveal the problem.

what is the error code for keepalive?


>  if it is out of tx buffer,
> anyway to get the warning first so that I can send out a smaller
> packet first?

There isn't an API to find out how many packet buffers are currently
available in lwIP.  You can find out how much space there is in the send
buffer for the socket, but if there isn't a packet buffer available that
doesn't help much.

Do you suggest I should just send it via lwip_send  and check the return value to figure out how many data got sent out and adjust accordingly?


Kieran

reply via email to

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