Two quick questions to help me understand and deal with TCP output buffering. As tcp(7) says, TIOCOUTQ "Returns the amount of unsent data in the socket send queue". Under Linux 2.2 it returns quite the opposite - the amount of free space in the buffer. 2.4 calls it SIOCOUTQ, #define'd to be identical, and seems to return the value as documented. Is this right? This means the call is rather useless... Another thing: say I want to keep data in an application send buffer until I get an ACK on the application level. Can I be _sure_ that the needed buffer size is bounded by the value I get from getsockopt(SO_SNDBUF)? sock_getsockopt() seems to agree (fortunately)... Olaf - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org