[Standards-JIG] Closing idle streams
Brian Raymond
brian.raymond at je.jfcom.mil
Fri Jun 2 14:20:24 CDT 2006
On 6/2/06 3:01 PM, "Justin Karneges"
<justin-keyword-jabber.093179 at affinix.com> wrote:
> On Friday 02 June 2006 09:23, Dave Cridland wrote:
>> So, assuming C and a standard sockets interface, where do I see what
>> data has been acked? I was sure there was somewhere myself, but I
>> can't find it on Linux, at least, where I thought it'd be easy to
>> find. (I was looking for the current window size, or anything like
>> it).
>
> This post shows how to get the TCP send-queue size on Linux:
> http://mail.jabber.org/pipermail/standards-jig/2003-December/004570.html
>
> Knowing what data has been acked is just a matter of keeping track how many
> bytes you've written vs how many bytes are in the queue. You don't need to
> pull the unsent data out of the TCP send-queue, and nor would you want to.
>
Dave,
The socket(7) man page describes how you know whether data was acknowledged
or not.
http://www.die.net/doc/linux/man/man7/socket.7.html
- Brian
More information about the Standards-JIG
mailing list