Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
SocketCancel
Last Revision: | Version 1.1, 2005-08-10 Updated to produce a universal binary. No code changes were required. |
Build Requirements: | |
Runtime Requirements: | Mac OS X Mac OS X |
SocketCancel is a sample that shows how to use safely cancel threads that are blocked within BSD sockets calls. It uses a simple sockets abstraction layer that wraps a non-blocking data socket, a UNIX domain socket pair that's used to signal cancellation, and creative use of the select system call.
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-08-10