• 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: Peeking at data on a socket (MSG_PEEK?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Peeking at data on a socket (MSG_PEEK?)


  • Subject: Re: Peeking at data on a socket (MSG_PEEK?)
  • From: Quinn <email@hidden>
  • Date: Mon, 11 Aug 2003 11:29:24 +0100

At 21:51 +1000 10/8/03, Heath Raftery wrote:
I am hoping to be able to peek at data on a socket I have connected in my application, so I look at the start of the data, and still let existing functions read the entire data later.

Is your application performance sensitive, you shouldn't use MSG_PEEK. Doing so requires two trips into the kernel for each chunk of data, which is bad. OTOH, if performance isn't a big deal, MSG_PEEK should be fine.

I'm wondering if this option is supported on Mac OS X

AFAIK it's present and working.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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: 
 >Peeking at data on a socket (MSG_PEEK?) (From: Heath Raftery <email@hidden>)

  • Prev by Date: Re: Locations disappear after creating dialup set with MoreSCF
  • Next by Date: Re: dup() & sockets
  • Previous by thread: Peeking at data on a socket (MSG_PEEK?)
  • Next by thread: dup() & sockets
  • Index(es):
    • Date
    • Thread