Jump To:
Leopard Sample Code: Games
Networking capabilities in Mac OS X include support for the major protocols and services. These are accessible through sockets and Core Foundation, as well as through the higher-level Carbon and Cocoa APIs. Developers who need to take advantage of networking in their games can use Bonjour (zero-configuration networking), an industry-standard mechanism for auto-discovery of computers, devices, and services on IP networks.

View all Networking Sample Code.
Document Descriptions
On Off
Display

Sorted by
Title
Sort by
Date
GetMACAddressSample (HTML) (DMG) (ZIP)
Demonstrates how to retrieve the MAC address for each Ethernet interface from the Mac OS X I/O Registry.
2003-01-14
GetPrimaryMACAddress (HTML) (DMG) (ZIP)
Demonstrates retrieving the MAC address of the built-in Ethernet controller. Useful for uniquely identifying a Macintosh system.
2005-10-27
GetSetOptions (HTML) (DMG) (ZIP)
Demonstrates a variety of uses of Open Transport's option management routines.
2003-01-14
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
2005-06-01
ListMania (HTML) (DMG) (ZIP)
Demonstrates a variety of techniques for using Open Transport's list utility routines.
2003-01-14
NoCopyReceives (HTML) (DMG) (ZIP)
Demonstrates using no-copy receives under Open Transport.
2003-01-14
SimplePing (HTML) (DMG) (ZIP)
Sample provides simple API to programatically ping a remote host without admin privileges
2003-10-27