socket queue size

socket queue size

Post by Rufu » Fri, 28 Mar 2003 07:54:53



Hi all!!
I need to obtain the number of bytes that remain to send

$ netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    135 xxx.xx.x.x:12345        yyy.yyy.yyy.yy:54321 ESTABLISHED

I want to get 135 value.
It's possible??
How can I do?

Thanks all

 
 
 

socket queue size

Post by Kevin Easto » Fri, 28 Mar 2003 08:19:18



> Hi all!!
> I need to obtain the number of bytes that remain to send

> $ netstat -tan
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0    135 xxx.xx.x.x:12345        yyy.yyy.yyy.yy:54321 ESTABLISHED

> I want to get 135 value.
> It's possible??
> How can I do?

Read /proc/net/tcp .

        - Kevin.

 
 
 

socket queue size

Post by Andi Klee » Fri, 28 Mar 2003 09:33:14



> I need to obtain the number of bytes that remain to send

I guess you mean from a program? The SIOCOUTQ ioctl provides
that. See the tcp(7) manpage.

Note that it doesn't work correctly in older linux versions.

-Andi

 
 
 

1. MAX SOCKET QUEUE SIZE

        I open a socket to receive requests.
        Is there a maximum size ( beyond which messages are lost )
        of the reception queue associated with a socket

Thank you.

  ---------------------------------------------------------------------------
  A. LABED

  ---------------------------------------------------------------------------

2. LPR Problem!! HELP!!

3. How to get the socket queue size

4. Tape Drive 2.3G & 5G

5. linux / hdparm / _very_ slow disks?

6. Socket queue size

7. SlickEdit for Linux

8. UNIX Domain Datagram Sockets - Receive Queue Size?

9. UNIX Domain Datagram Socket:Receive Queue Size?

10. How do I set a streams queue (pipe queue) size?

11. Any relationship between message size and tcp/udp socket buffer size?

12. AF_UNIX datagram rcv queue size?