lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] TCP_WRITE [Raw]


From: Chris Strahm
Subject: [lwip-users] TCP_WRITE [Raw]
Date: Sun, 08 Nov 2009 18:28:53 -0800

A specific question about tcp_write() failing:

The normal check for space before calling tcp_write() seems to be:  SendLen
< tcp_sndbuf(pcb)

Which I assume checks to see if there is space enough in the output tcp
queue.

If this passes, then how would tcp_write ever fail with an err_mem result?

Does this change if COPY(0) or COPY(1) is used for the apiflags?

In other words, could memory still be required for data copy that is not
checked by the tcp sndbuf queue space.

If so, is there a check to test for available mem to copy data?

Thanks,  Chris.






reply via email to

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