Re: quantity in send queue ? (rephrase)
Re: quantity in send queue ? (rephrase)
- Subject: Re: quantity in send queue ? (rephrase)
- From: Justin Walker <email@hidden>
- Date: Wed, 28 Apr 2004 11:24:43 -0700
On Apr 28, 2004, at 10:39, Nicolas Berloquin wrote:
let me rephrase this:
I have a socket descriptor, and I don't know how to get the
corresponding
send buffer.
Every sample on the net that I saw did something like this:
so->so_snd.sb_cc
with :
socket *so;
but the descriptor is just a reference, not a pointer...
therefore: how can I know the amount of data that is currently inside
the socket's send buffer, from a socket descriptor ?
My previous mail should answer your question, but to clarify this: the
code you show here is from the kernel. Your application is a user-mode
program, and as such, cannot see the kernel data structures (like what
'so' is pointing at).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Some people have a mental
| horizon of radius zero, and
| call it their point of view.
| -- David Hilbert
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.