Date: Wed, 18 Nov 2009 13:31:32 -0600 From: Ryan Sommers <ryans@rpsommers.com> To: questions@freebsd.org Subject: RecvQ Size from fd? Message-ID: <3752c73e0911181131yea7b1s499776e045dc684d@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Is it possible to get the amount of data in the receive queue from a socket file descriptor (userland app)? I see that netstat gets a list of struct socket* and from there you can find the answer from the so_rcv sockbuf. But I can't find a way to match a socket fd up to the struct sock. Thanks, Ryan -- Ryan P Sommers ryans@rpsommers.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3752c73e0911181131yea7b1s499776e045dc684d>