Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: blocking on recv saves a copy op?



At 19:55 -0800 23/3/06, Tim Dorcey wrote:
If I wait on select (or kqueue event) to signal the
arrival of (UDP) data before calling recvfrom, is that going to cost an
extra memory copy, versus having the socket block on recvfrom?

No. With sockets (at least on Mac OS X), you always get a copy.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >blocking on recv saves a copy op? (From: "Tim Dorcey" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.