Hello! > As tcp(7) says, TIOCOUTQ "Returns the amount of unsent data in the socket > send queue" ... > and seems to return the value as documented. Is this right? Yes. > This means the call is rather useless... Sorry? > 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)... Please, formulate your thoughts a bit more intelligibly. SO_SNDBUF has nothing common with "application" send buffer. It is internal kernel buffer. Alexey - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org