Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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?)



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.