[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] This is correct behavior for using tcp_write within the
From: |
Kieran Mansley |
Subject: |
Re: [lwip-devel] This is correct behavior for using tcp_write within the tcp_sent callback? |
Date: |
Fri, 13 Feb 2009 14:18:44 +0000 |
On Fri, 2009-02-13 at 09:04 -0500, bill wrote:
> I noticed that if the tcp_sent callback calls tcp_write more than once
> that weird behavior (i.e. bad data being sent) can be observed. Is
> the intent that there can only one tcp_write per tcp_sent callback?
No, you should be fine. The only constraint I can think of is that you
should always check that there's space (using tcp_sndbuf()) before
calling tcp_write().
Kieran