Re: Peeking at data on a socket (MSG_PEEK?)
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.