Jump To:
Leopard Reference Library: Networking
Networking capabilities include support for the major protocols and services, as well as enhanced features provided by Mac OS X. Developers can use the networking APIs to provide sophisticated LAN, WAN, Internet, and web capabilities in Cocoa applications. These are accessible through sockets and Core Foundation, as well as through the higher-level Cocoa APIs.

View all Cocoa Reference Library.
Document Descriptions
On Off
Display

Sort by
Title
Sort by
Resource Type
Sorted by
Date
Stream Programming Guide for Cocoa (HTML) (PDF)
Explains how to use the Cocoa stream classes to read data from and write data to streams.
Guides 2009-05-06
NSNetService Class Reference (HTML) (PDF)
Describes a network service that an application publishes or uses as a client.
Reference 2009-04-08
NSNetServiceBrowser Class Reference (HTML) (PDF)
Describes a query for published network services.
Reference 2009-04-08
NSURL Class Reference (HTML) (PDF)
Describes a string that uniquely identifies a resource.
Reference 2009-02-04
NSURLHandle Class Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Reference 2009-02-04
NSOutputStream Class Reference (HTML) (PDF)
Describes a write-only data stream.
Reference 2009-01-06
NSHTTPCookie Class Reference (HTML) (PDF)
Describes an opaque set of data that represents state or configuration.
Reference 2008-11-13
NSNetServices and CFNetServices Programming Guide (HTML) (PDF)
Describes how to implement Bonjour in Cocoa or Carbon applications.
Guides 2008-10-15
NSSocketPort Class Reference (HTML) (PDF)
Describes a BSD socket for distributed object connections or raw messaging.
Reference 2008-10-15
NSStream Class Reference (HTML) (PDF)
Describes an interface for reading and writing data.
Reference 2008-10-15
URL CacheInfo (HTML) (DMG) (ZIP)
Demonstrates resource caching behavior using the Cocoa URL loading system.
Sample Code 2008-06-05
Getting a Packet Trace (HTML) (日本語 HTML)
QA1176: Lists tools available for looking at the network packets on the wire.
Technical Q&As 2008-06-03
URL Loading System (HTML) (PDF)
Explains how to manipulate URLs and transfer URL contents.
Guides 2008-05-06
NSCachedURLResponse Class Reference (HTML) (PDF)
Describes a cached response to a URL load request.
Reference 2008-05-02
Bonjour Printer Subtype for HTTP (HTML)
QA1555: Describes how printer vendors can register their bonjour service such that Safari can see them.
Technical Q&As 2008-03-25
NSURLCache Class Reference (HTML) (PDF)
Describes a collection of cached responses and data.
Reference 2008-03-11
NSURLResponse Class Reference (HTML) (PDF)
Describes the metadata returned by a server for a load request.
Reference 2007-12-11
Don't forget to cancel your Bonjour resolve (HTML)
QA1297: Explains why it's important to cancel a Bonjour resolve operation.
Technical Q&As 2007-08-30
Collaboration Reference Update (HTML) (PDF)
Summarizes the symbols added to the Collaboration framework.
Release Notes 2007-07-18
Distributed Objects Programming Topics (HTML) (PDF)
Explains how Objective-C objects in different threads or different processes communicate.
Guides 2007-06-06
NewsReader (HTML) (DMG) (ZIP)
Demonstrates use of the Publication Subscription framework to create a simple RSS reader application.
Sample Code 2007-06-01
CBGroupIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Reference 2007-05-14
CBIdentity Class Reference (HTML) (PDF)
Describes the class used to create and operate on identities.
Reference 2007-05-14
CBIdentityAuthority Class Reference (HTML) (PDF)
Describes the class used to manipulate identity authority databases.
Reference 2007-05-14
CBIdentityPicker Class Reference (HTML) (PDF)
Describes the class that manages the identity picker.
Reference 2007-05-14
CBUserIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Reference 2007-05-14
Collaboration Framework Reference (HTML) (PDF)
Describes the Objective-C API for monitoring and editing identities.
Reference 2007-05-14
Identity Services Reference Collection (HTML) (PDF)
Describes the APIs for using identities and the Identity Picker.
Reference 2007-05-14
NSInputStream Class Reference (HTML) (PDF)
Describes a read-only data stream.
Reference 2007-04-05
NSURLConnection Class Reference (HTML) (PDF)
Describes the class that provides support for retrieving data from a server in response to a URL load request.
Reference 2007-04-01
NSURLProtocol Class Reference (HTML) (PDF)
Describes the interface for protocol-specific loading of URL data.
Reference 2007-04-01
NSURLRequest Class Reference (HTML) (PDF)
Describes a request for a resource identified by a URL.
Reference 2007-04-01
NSHost Class Reference (HTML) (PDF)
Describes a representation of a network host.
Reference 2007-03-24
NSSocketPortNameServer Class Reference (HTML) (PDF)
Describes a registrar of named TCP/IP sockets.
Reference 2007-02-26
NSMessagePortNameServer Class Reference (HTML) (PDF)
Describes a facility that accepts and returns message ports.
Reference 2007-02-23
NSURLClient Protocol Reference (HTML) (PDF)
Deprecated - Describes the deprecated class replaced by the classes NSURLConnection and NSURLDownload.
Reference 2006-08-01
NSURLCredential Class Reference (HTML) (PDF)
Describes a credential used to authenticate a URL load request.
Reference 2006-06-28
NSHTTPCookieStorage Class Reference (HTML) (PDF)
Describes a collection of cookies shared across all applications.
Reference 2006-05-23
NSHTTPURLResponse Class Reference (HTML) (PDF)
Describes a response to an HTTP request.
Reference 2006-05-23
NSMessagePort Class Reference (HTML) (PDF)
Describes an endpoint for distributed object connections or interprocess messaging.
Reference 2006-05-23
NSMutableURLRequest Class Reference (HTML) (PDF)
Describes a mutable request for a resource identified by a URL.
Reference 2006-05-23
NSURL Additions Reference (HTML) (PDF)
Describes additions to support pasteboards.
Reference 2006-05-23
NSURLAuthenticationChallenge Class Reference (HTML) (PDF)
Describes a challenge from a server requiring authentication from the client.
Reference 2006-05-23
NSURLAuthenticationChallengeSender Protocol Reference (HTML) (PDF)
Describes the interface for receiving authentication challenges.
Reference 2006-05-23
NSURLCredentialStorage Class Reference (HTML) (PDF)
Describes a mapping of credentials to their corresponding protection spaces.
Reference 2006-05-23
NSURLDownload Class Reference (HTML) (PDF)
Describes a connection used to download data to a file.
Reference 2006-05-23
NSURLHandleClient Protocol Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Reference 2006-05-23
NSURLProtectionSpace Class Reference (HTML) (PDF)
Describes an area on a server that requires authentication of URL load requests.
Reference 2006-05-23
NSURLProtocolClient Protocol Reference (HTML) (PDF)
Describes the interface used by protocol objects to communicate with the URL loading system.
Reference 2006-05-23
Problems getting Bonjour TXT record information (HTML)
QA1389: Explains why you might have problems retrieving TXT record information from a CFNetServiceRef or NSNetService.
Technical Q&As 2005-07-06
AutoUpdater (HTML) (DMG) (ZIP)
This sample demonstrates Cocoa networking using the NSURL loading classes, NSURLConnection and NSURLDownload.
Sample Code 2005-06-01
CocoaHTTPServer (HTML) (DMG) (ZIP)
A Cocoa example showing how to write a very basic HTTP service.
Sample Code 2005-06-01
GridCalendar (HTML) (DMG) (ZIP)
Demonstrates how to add a custom job submission UI to the GridSample project.
Sample Code 2005-06-01
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
Sample Code 2005-06-01
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.
Technical Q&As 2005-01-10
Bonjour enforces the TXT record format in Panther (HTML)
QA1306: Explains how mDNSResponder enforces the proper TXT record format in Panther.
Technical Q&As 2004-07-14
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.
Technical Q&As 2004-07-14
Discovering all advertised Bonjour service types (HTML)
QA1337: Explains how to discover all Bonjour service types being advertised on the local network.
Technical Q&As 2004-06-01
Bonjour enforces the service type format in Panther (HTML)
QA1198: Explains why registering a Bonjour service might fail on Panther.
Technical Q&As 2004-03-23
Use the Computer Name when registering your Bonjour service (HTML)
QA1228: Explains why you should use the Computer Name when advertising a Bonjour service.
Technical Q&As 2004-03-05
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.
Technical Q&As 2003-10-29
Bonjour TXT record rate limiting in Panther (HTML)
QA1293: Explains how mDNSResponder implements TXT record rate limiting in Panther.
Technical Q&As 2003-10-23
Bonjour and wake from sleep (HTML)
QA1290: Explains why applications that use Bonjour should stay registered and continue browsing on sleep.
Technical Q&As 2003-09-18
PPPoE Server for Testing (HTML) (日本語 HTML)
QA1252: Describes how to configure Mac OS X as a PPPoE server for testing purposes.
Technical Q&As 2003-04-11
NameAndAddress (HTML) (DMG) (ZIP)
A single window utility that gets a host name from an IP address or an IP address from a hostname.
Sample Code 2003-01-14
Allocate and Disk Full Error (HTML) (日本語 HTML)
FL12: Discusses a problem with AFP volumes displaying incorrect free space, and returning disk full errors.
Technical Q&As 1999-07-21
OTScheduleDeferredTask When Task Running (HTML) (日本語 HTML)
NW52: Describes what happens when you use OTScheduleDefferedTask to schedule a task that is running.
Technical Q&As 1997-10-13
Changing the TCP Window Size (HTML)
NW47: Describes how to change the TCP window size in Open Transport.
Technical Q&As 1997-03-14
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.
Technical Q&As 1996-10-25