Version: 1.1

Posted: 2005-08-10

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X

View Source Code:

Download Sample (“SocketCancel.zip”, 33.0K)
Download Sample (“SocketCancel.dmg”, 94.0K)



Description

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.

Document Revision History

Date Notes
2005-08-10Updated to produce a universal binary. No code changes were required.
2003-08-07Shows how to safely cancel threads that are blocked within BSD sockets calls.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.