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.