Re: TIOCOUTQ, SO_SNDBUF

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

 



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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux