Re: quantity in send queue ? (rephrase)
Re: quantity in send queue ? (rephrase)
- Subject: Re: quantity in send queue ? (rephrase)
- From: Nicolas Berloquin <email@hidden>
- Date: Wed, 28 Apr 2004 19:39:20 +0200
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 ?
thanks !
On 28 avr. 04, at 18:32, Nicolas Berloquin wrote:
I can't find where to get the amount of data currently laying in a
socket's TCP send queue.
I found this on the net (about linux), but I'm not sure this is the
right way to go (I always get error -1) :
int error = ioctl(s, TIOCOUTQ, &value);
or maybe I'm not using the right headers ?
thanks
_______________________________________________
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.
_______________________________________________
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.