• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: quantity in send queue ? (rephrase)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: quantity in send queue ? (rephrase)
      • From: Justin Walker <email@hidden>
References: 
 >quantity in send queue ? (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: Re: quantity in send queue ?
  • Next by Date: Re: quantity in send queue ?
  • Previous by thread: Re: quantity in send queue ?
  • Next by thread: Re: quantity in send queue ? (rephrase)
  • Index(es):
    • Date
    • Thread