• 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: 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.


References: 
 >quantity in send queue ? (From: Nicolas Berloquin <email@hidden>)
 >Re: quantity in send queue ? (rephrase) (From: Nicolas Berloquin <email@hidden>)

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