getting size of data in socket buffer

Alexander V. Lukyanov (lav@yars.free.net)
Wed, 2 Jun 1999 22:00:45 +0400


Hi!

To report precisely how much data is/are transferred, my program
needs to know how much data is buffered on tcp socket. Currently I'm
using TIOCOUTQ ioctl, but SNDBUF-OUTQ does not exactly equal to amount
of data buffered.

Is it possible to add an ioctl to get this very information? Is there
such thing in other operating systems?

Alexander.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/