Jump To:
Leopard Reference Library
Networking capabilities in Mac OS X include support for the major protocols and services. Developers can gain access to them through sockets and Core Services, as well as through the higher-level Carbon and Cocoa APIs.

Provides a guided introduction to developing network-capable applications for Mac OS X.   Essential information for developers using Apple's networking environment.   API references organized by framework.
Document Descriptions
On Off
Display

Sort by
Title
Sorted by
Topic
Sort by
Resource Type
Sort by
Date
URL Access vs. CFNetwork (HTML)
QA1291: Explains when to choose URL Access or CFNetwork when downloading files from within your application.
Carbon Technical Q&As 2003-10-29
Use the Computer Name when registering your Bonjour service (HTML)
QA1228: Explains why you should use the Computer Name when advertising a Bonjour service.
Carbon Technical Q&As 2004-03-05
Allocate and Disk Full Error (HTML) (日本語 HTML)
FL12: Discusses a problem with AFP volumes displaying incorrect free space, and returning disk full errors.
Cocoa Technical Q&As 1999-07-21
AutoUpdater (HTML) (DMG) (ZIP)
This sample demonstrates Cocoa networking using the NSURL loading classes, NSURLConnection and NSURLDownload.
Cocoa Sample Code 2005-06-01
Bonjour and wake from sleep (HTML)
QA1290: Explains why applications that use Bonjour should stay registered and continue browsing on sleep.
Cocoa Technical Q&As 2003-09-18
Bonjour enforces the service type format in Panther (HTML)
QA1198: Explains why registering a Bonjour service might fail on Panther.
Cocoa Technical Q&As 2004-03-23
Bonjour enforces the TXT record format in Panther (HTML)
QA1306: Explains how mDNSResponder enforces the proper TXT record format in Panther.
Cocoa Technical Q&As 2004-07-14
Bonjour Printer Subtype for HTTP (HTML)
QA1555: Describes how printer vendors can register their bonjour service such that Safari can see them.
Cocoa Technical Q&As 2008-03-25
Bonjour TXT record rate limiting in Panther (HTML)
QA1293: Explains how mDNSResponder implements TXT record rate limiting in Panther.
Cocoa Technical Q&As 2003-10-23
CBGroupIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Cocoa Reference 2007-05-14
CBIdentity Class Reference (HTML) (PDF)
Describes the class used to create and operate on identities.
Cocoa Reference 2007-05-14
CBIdentityAuthority Class Reference (HTML) (PDF)
Describes the class used to manipulate identity authority databases.
Cocoa Reference 2007-05-14
CBIdentityPicker Class Reference (HTML) (PDF)
Describes the class that manages the identity picker.
Cocoa Reference 2007-05-14
CBUserIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Cocoa Reference 2007-05-14
Changing the TCP Window Size (HTML)
NW47: Describes how to change the TCP window size in Open Transport.
Cocoa Technical Q&As 1997-03-14
CocoaHTTPServer (HTML) (DMG) (ZIP)
A Cocoa example showing how to write a very basic HTTP service.
Cocoa Sample Code 2005-06-01
Collaboration Framework Reference (HTML) (PDF)
Describes the Objective-C API for monitoring and editing identities.
Cocoa Reference 2007-05-14
Collaboration Reference Update (HTML) (PDF)
Summarizes the symbols added to the Collaboration framework.
Cocoa Release Notes 2007-07-18
Discovering all advertised Bonjour service types (HTML)
QA1337: Explains how to discover all Bonjour service types being advertised on the local network.
Cocoa Technical Q&As 2004-06-01
Distributed Objects Programming Topics (HTML) (PDF)
Explains how Objective-C objects in different threads or different processes communicate.
Cocoa Guides 2007-06-06
Don't forget to cancel your Bonjour resolve (HTML)
QA1297: Explains why it's important to cancel a Bonjour resolve operation.
Cocoa Technical Q&As 2007-08-30
Downloading through a proxy server in Mac OS X (HTML)
QA1296: Explains when downloading through a proxy server will work, and when it will fail.
Cocoa Technical Q&As 2003-10-29
Getting a Packet Trace (HTML) (日本語 HTML)
QA1176: Lists tools available for looking at the network packets on the wire.
Cocoa Technical Q&As 2008-06-03
GridCalendar (HTML) (DMG) (ZIP)
Demonstrates how to add a custom job submission UI to the GridSample project.
Cocoa Sample Code 2005-06-01
Identity Services Reference Collection (HTML) (PDF)
Describes the APIs for using identities and the Identity Picker.
Cocoa Reference 2007-05-14
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
Cocoa Sample Code 2005-06-01
NameAndAddress (HTML) (DMG) (ZIP)
A single window utility that gets a host name from an IP address or an IP address from a hostname.
Cocoa Sample Code 2003-01-14
NewsReader (HTML) (DMG) (ZIP)
Demonstrates use of the Publication Subscription framework to create a simple RSS reader application.
Cocoa Sample Code 2007-06-01
NSCachedURLResponse Class Reference (HTML) (PDF)
Describes a cached response to a URL load request.
Cocoa Reference 2008-05-02
NSHost Class Reference (HTML) (PDF)
Describes a representation of a network host.
Cocoa Reference 2007-03-24
NSHTTPCookie Class Reference (HTML) (PDF)
Describes an opaque set of data that represents state or configuration.
Cocoa Reference 2008-11-13
NSHTTPCookieStorage Class Reference (HTML) (PDF)
Describes a collection of cookies shared across all applications.
Cocoa Reference 2006-05-23
NSHTTPURLResponse Class Reference (HTML) (PDF)
Describes a response to an HTTP request.
Cocoa Reference 2006-05-23
NSInputStream Class Reference (HTML) (PDF)
Describes a read-only data stream.
Cocoa Reference 2007-04-05
NSMessagePort Class Reference (HTML) (PDF)
Describes an endpoint for distributed object connections or interprocess messaging.
Cocoa Reference 2006-05-23
NSMessagePortNameServer Class Reference (HTML) (PDF)
Describes a facility that accepts and returns message ports.
Cocoa Reference 2007-02-23
NSMutableURLRequest Class Reference (HTML) (PDF)
Describes a mutable request for a resource identified by a URL.
Cocoa Reference 2006-05-23
NSNetService Class Reference (HTML) (PDF)
Describes a network service that an application publishes or uses as a client.
Cocoa Reference 2009-04-08
NSNetServiceBrowser Class Reference (HTML) (PDF)
Describes a query for published network services.
Cocoa Reference 2009-04-08
NSNetServices and CFNetServices Programming Guide (HTML) (PDF)
Describes how to implement Bonjour in Cocoa or Carbon applications.
Cocoa Guides 2008-10-15
NSOutputStream Class Reference (HTML) (PDF)
Describes a write-only data stream.
Cocoa Reference 2009-01-06
NSSocketPort Class Reference (HTML) (PDF)
Describes a BSD socket for distributed object connections or raw messaging.
Cocoa Reference 2008-10-15
NSSocketPortNameServer Class Reference (HTML) (PDF)
Describes a registrar of named TCP/IP sockets.
Cocoa Reference 2007-02-26
NSStream Class Reference (HTML) (PDF)
Describes an interface for reading and writing data.
Cocoa Reference 2008-10-15
NSURL Additions Reference (HTML) (PDF)
Describes additions to support pasteboards.
Cocoa Reference 2006-05-23
NSURL Class Reference (HTML) (PDF)
Describes a string that uniquely identifies a resource.
Cocoa Reference 2009-02-04
NSURLAuthenticationChallenge Class Reference (HTML) (PDF)
Describes a challenge from a server requiring authentication from the client.
Cocoa Reference 2006-05-23
NSURLAuthenticationChallengeSender Protocol Reference (HTML) (PDF)
Describes the interface for receiving authentication challenges.
Cocoa Reference 2006-05-23
NSURLCache Class Reference (HTML) (PDF)
Describes a collection of cached responses and data.
Cocoa Reference 2008-03-11
NSURLClient Protocol Reference (HTML) (PDF)
Deprecated - Describes the deprecated class replaced by the classes NSURLConnection and NSURLDownload.
Cocoa Reference 2006-08-01
NSURLConnection Class Reference (HTML) (PDF)
Describes the class that provides support for retrieving data from a server in response to a URL load request.
Cocoa Reference 2007-04-01
NSURLCredential Class Reference (HTML) (PDF)
Describes a credential used to authenticate a URL load request.
Cocoa Reference 2006-06-28
NSURLCredentialStorage Class Reference (HTML) (PDF)
Describes a mapping of credentials to their corresponding protection spaces.
Cocoa Reference 2006-05-23
NSURLDownload Class Reference (HTML) (PDF)
Describes a connection used to download data to a file.
Cocoa Reference 2006-05-23
NSURLHandle Class Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Cocoa Reference 2009-02-04
NSURLHandleClient Protocol Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Cocoa Reference 2006-05-23
NSURLProtectionSpace Class Reference (HTML) (PDF)
Describes an area on a server that requires authentication of URL load requests.
Cocoa Reference 2006-05-23
NSURLProtocol Class Reference (HTML) (PDF)
Describes the interface for protocol-specific loading of URL data.
Cocoa Reference 2007-04-01
NSURLProtocolClient Protocol Reference (HTML) (PDF)
Describes the interface used by protocol objects to communicate with the URL loading system.
Cocoa Reference 2006-05-23
NSURLRequest Class Reference (HTML) (PDF)
Describes a request for a resource identified by a URL.
Cocoa Reference 2007-04-01
NSURLResponse Class Reference (HTML) (PDF)
Describes the metadata returned by a server for a load request.
Cocoa Reference 2007-12-11
OTScheduleDeferredTask When Task Running (HTML) (日本語 HTML)
NW52: Describes what happens when you use OTScheduleDefferedTask to schedule a task that is running.
Cocoa Technical Q&As 1997-10-13
PPPoE Server for Testing (HTML) (日本語 HTML)
QA1252: Describes how to configure Mac OS X as a PPPoE server for testing purposes.
Cocoa Technical Q&As 2003-04-11
Problems getting Bonjour TXT record information (HTML)
QA1389: Explains why you might have problems retrieving TXT record information from a CFNetServiceRef or NSNetService.
Cocoa Technical Q&As 2005-07-06
Resolves may return an IPv6 address in Panther (HTML)
QA1298: Explains why you get an IP address of 0.0.0.0 when resolving a Bonjour service.
Cocoa Technical Q&As 2005-01-10
Stream Programming Guide for Cocoa (HTML) (PDF)
Explains how to use the Cocoa stream classes to read data from and write data to streams.
Cocoa Guides 2009-05-06
T_DATA_REQ vs M_DATA TPI Message Blocks (HTML) (日本語 HTML)
NW42: Explains why OT passes data to a TPI module using M_DATA message blocks instead of M_PROTO+T_DATA_REQ.
Cocoa Technical Q&As 1996-10-25
Updating the TXT record of a Bonjour service (HTML)
QA1302: Explains how to update a Bonjour TXT record while running on either Jaguar or Panther.
Cocoa Technical Q&As 2004-07-14
URL CacheInfo (HTML) (DMG) (ZIP)
Demonstrates resource caching behavior using the Cocoa URL loading system.
Cocoa Sample Code 2008-06-05
URL Loading System (HTML) (PDF)
Explains how to manipulate URLs and transfer URL contents.
Cocoa Guides 2008-05-06
Use the Computer Name when registering your Bonjour service (HTML)
QA1228: Explains why you should use the Computer Name when advertising a Bonjour service.
Cocoa Technical Q&As 2004-03-05
Bonjour enforces the TXT record format in Panther (HTML)
QA1306: Explains how mDNSResponder enforces the proper TXT record format in Panther.
Core Foundation Technical Q&As 2004-07-14
Bonjour Printer Subtype for HTTP (HTML)
QA1555: Describes how printer vendors can register their bonjour service such that Safari can see them.
Core Foundation Technical Q&As 2008-03-25
CFFTPSample (HTML) (DMG) (ZIP)
A simple example showing how to use CFFTPStream to download and upload files.
Core Foundation Sample Code 2006-10-13
CFFTPStream Reference (HTML) (PDF)
Describes the C API for communicating with FTP servers.
Core Foundation Reference 2008-07-11
CFHost Reference (HTML) (PDF)
Describes the C API for acquiring host information.
Core Foundation Reference 2008-07-11
CFHostSample (HTML) (DMG) (ZIP)
Uses the CFHost API to do DNS hostname lookups and to determine host reachability.
Core Foundation Sample Code 2004-04-20
CFHTTPAuthentication Reference (HTML) (PDF)
Describes the C API for applying authentication credentials to HTTP messages.
Core Foundation Reference 2007-05-15
CFHTTPMessage Reference (HTML) (PDF)
Describes the C API for creating, sending, receiving and manipulating HTTP messages.
Core Foundation Reference 2008-07-11
CFHTTPStream Reference (HTML) (PDF)
Describes the interface for working with HTTP connections.
Core Foundation Reference 2008-07-08
CFNetDiagnostics Reference (HTML) (PDF)
Describes the C API for diagnosing and fixing network related problems.
Core Foundation Reference 2008-07-11
CFNetServices Reference (HTML) (PDF)
Describes the C API for implementing Bonjour functionality in an application.
Core Foundation Reference 2008-07-08
CFNetwork Error Codes Reference (HTML) (PDF)
Describes error codes used by the CFNetwork API.
Core Foundation Reference 2008-10-15
CFNetwork Programming Guide (HTML) (PDF)
Explains how to use Core Foundation networking functions to work with low-level BSD sockets.
Core Foundation Guides 2009-05-06
CFNetworkHTTPDownload (HTML) (DMG) (ZIP)
Demonstrates how to download a URL using CFNetworking.
Core Foundation Sample Code 2006-01-18
CFProxySupport Reference (HTML) (PDF)
Describes the CFProxySupport API, which provides functions for managing network proxy information.
Core Foundation Reference 2008-07-07
CFProxySupportTool (HTML) (DMG) (ZIP)
Shows how to use the CFProxySupport APIs to decide whether a network connection should pass through a proxy.
Core Foundation Sample Code 2007-10-29
CFStream Reference (HTML) (PDF)
Describes the interface for creating streams.
Core Foundation Reference 2007-05-03
CFStream Socket Additions (HTML) (PDF)
Describes the C API for using streams with sockets.
Core Foundation Reference 2008-07-08
Core Services Identity Reference (HTML)
Describes the C API for creating, maintaining and finding users and groups.
Core Foundation Reference 2008-04-08
Discovering all advertised Bonjour service types (HTML)
QA1337: Explains how to discover all Bonjour service types being advertised on the local network.
Core Foundation Technical Q&As 2004-06-01
DNSServiceMetaQuery (HTML) (DMG) (ZIP)
Shows how to discover Bonjour service types being advertised on the local network.
Core Foundation Sample Code 2005-06-01
Downloading through a proxy server in Mac OS X (HTML)
QA1296: Explains when downloading through a proxy server will work, and when it will fail.
Core Foundation Technical Q&As 2003-10-29
Getting a Packet Trace (HTML) (日本語 HTML)
QA1176: Lists tools available for looking at the network packets on the wire.
Core Foundation Technical Q&As 2008-06-03
Getting the User and Computer Name (HTML)
QA1078: Describes how to get the user and computer name on Mac OS X.
Core Foundation Technical Q&As 2001-10-30
Identity Services Programming Guide (HTML) (PDF)
Explains how identities work and how to use them in applications.
Core Foundation Guides 2008-10-15
Identity Services Reference Collection (HTML) (PDF)
Describes the APIs for using identities and the Identity Picker.
Core Foundation Reference 2007-05-14
IdentitySample (HTML) (DMG) (ZIP)
IdentitySample builds a utility which demonstrates how to use the CoreServices Identity API to manage system-wide identities
Core Foundation Sample Code 2006-07-27
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
Core Foundation Sample Code 2005-06-01
Problems getting Bonjour TXT record information (HTML)
QA1389: Explains why you might have problems retrieving TXT record information from a CFNetServiceRef or NSNetService.
Core Foundation Technical Q&As 2005-07-06