|
Version: 1.2 Posted: 2005-07-26 Build Requirements: Xcode 1.5 or later Runtime Requirements: Mac OS X Download Sample (CFLocalServer.zip, 122.5K) |
||||||||
DescriptionCFLocalServer is a sample that shows how to use UNIX domain sockets to communicate between client and server programs running on the same machine. This sample was written specifically to show how a daemon can manage communication with multiple clients. It supports RPC communications (where the client makes a request to server and blocks waiting for a reply) and asynchronous notification (where the server sends messages to all clients). It wraps each UNIX domain socket in a CFSocket to demonstrate the integration of UNIX domain sockets with a run-loop based program. CFLocalServer should work on all versions of Mac OS X, but it has been primarily tested on Mac OS X 10.4.x. Document Revision History
|
|