Version: 1.0

Posted: 2005-06-01

Build Requirements: Tiger

Runtime Requirements: Tiger

View Source Code:

Download Sample (“CocoaEcho.zip”, 62.7K)
Download Sample (“CocoaEcho.dmg”, 117.6K)



Description

This sample code shows you how to write a basic echo client/server pair. It demonstrates how to make services available on both IPv4 and IPv6 endpoints, publishing the services using Bonjour, and how to respond to network events asynchronously.

Document Revision History

Date Notes
2005-06-01Cocoa example code showing how to write a simple client and server using NSStream.

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.