Jump To:
Leopard Reference Library: Cocoa
Networking capabilities in Mac OS X include support for the major protocols and services. 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 Networking Reference Library.
Document Descriptions
On Off
Display

Sorted by
Title
Sort by
Resource Type
Sort by
Date
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
AutoUpdater (HTML) (DMG) (ZIP)
This sample demonstrates Cocoa networking using the NSURL loading classes, NSURLConnection and NSURLDownload.
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.
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.
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.
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.
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.
Technical Q&As 2003-10-23
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
CFNetwork Programming Guide (HTML) (PDF)
Explains how to use Core Foundation networking functions to work with low-level BSD sockets.
Guides 2009-05-06
Changing the TCP Window Size (HTML)
NW47: Describes how to change the TCP window size in Open Transport.
Technical Q&As 1997-03-14
CocoaEcho (HTML) (DMG) (ZIP)
Cocoa example code showing how to write a simple client and server using NSStream.
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
CocoaSOAP (HTML) (DMG) (ZIP)
Demonstrates implementing a SOAP client and server in Cocoa.
Sample Code 2005-06-06
Collaboration Framework Reference (HTML) (PDF)
Describes the Objective-C API for monitoring and editing identities.
Reference 2007-05-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
Distributed Objects Programming Topics (HTML) (PDF)
Explains how Objective-C objects in different threads or different processes communicate.
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.
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.
Technical Q&As 2003-10-29
GetMACAddressSample (HTML) (DMG) (ZIP)
Demonstrates how to retrieve the MAC address for each Ethernet interface from the Mac OS X I/O Registry.
Sample Code 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.
Sample Code 2005-10-27
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
GridCalendar (HTML) (DMG) (ZIP)
Demonstrates how to add a custom job submission UI to the GridSample project.
Sample Code 2005-06-01
Identity Services Reference Collection (HTML) (PDF)
Describes the APIs for using identities and the Identity Picker.
Reference 2007-05-14
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
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
NewsReader (HTML) (DMG) (ZIP)
Demonstrates use of the Publication Subscription framework to create a simple RSS reader application.
Sample Code 2007-06-01
NSCachedURLResponse Class Reference (HTML) (PDF)
Describes a cached response to a URL load request.
Reference 2008-05-02
NSHost Class Reference (HTML) (PDF)
Describes a representation of a network host.
Reference 2007-03-24
NSHTTPCookie Class Reference (HTML) (PDF)
Describes an opaque set of data that represents state or configuration.
Reference 2008-11-13
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
NSInputStream Class Reference (HTML) (PDF)
Describes a read-only data stream.
Reference 2007-04-05
NSMessagePort Class Reference (HTML) (PDF)
Describes an endpoint for distributed object connections or interprocess messaging.
Reference 2006-05-23
NSMessagePortNameServer Class Reference (HTML) (PDF)
Describes a facility that accepts and returns message ports.
Reference 2007-02-23
NSMutableURLRequest Class Reference (HTML) (PDF)
Describes a mutable request for a resource identified by a URL.
Reference 2006-05-23
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
NSNetServices and CFNetServices Programming Guide (HTML) (PDF)
Describes how to implement Bonjour in Cocoa or Carbon applications.
Guides 2008-10-15
NSOutputStream Class Reference (HTML) (PDF)
Describes a write-only data stream.
Reference 2009-01-06
NSSocketPort Class Reference (HTML) (PDF)
Describes a BSD socket for distributed object connections or raw messaging.
Reference 2008-10-15
NSSocketPortNameServer Class Reference (HTML) (PDF)
Describes a registrar of named TCP/IP sockets.
Reference 2007-02-26
NSStream Class Reference (HTML) (PDF)
Describes an interface for reading and writing data.
Reference 2008-10-15
NSURL Additions Reference (HTML) (PDF)
Describes additions to support pasteboards.
Reference 2006-05-23
NSURL Class Reference (HTML) (PDF)
Describes a string that uniquely identifies a resource.
Reference 2009-02-04
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
NSURLCache Class Reference (HTML) (PDF)
Describes a collection of cached responses and data.
Reference 2008-03-11
NSURLClient Protocol Reference (HTML) (PDF)
Deprecated - Describes the deprecated class replaced by the classes NSURLConnection and NSURLDownload.
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.
Reference 2007-04-01
NSURLCredential Class Reference (HTML) (PDF)
Describes a credential used to authenticate a URL load request.
Reference 2006-06-28
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
NSURLHandle Class Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Reference 2009-02-04
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
NSURLProtocol Class Reference (HTML) (PDF)
Describes the interface for protocol-specific loading of URL data.
Reference 2007-04-01
NSURLProtocolClient Protocol Reference (HTML) (PDF)
Describes the interface used by protocol objects to communicate with the URL loading system.
Reference 2006-05-23
NSURLRequest Class Reference (HTML) (PDF)
Describes a request for a resource identified by a URL.
Reference 2007-04-01
NSURLResponse Class Reference (HTML) (PDF)
Describes the metadata returned by a server for a load request.
Reference 2007-12-11
PictureSharing (HTML) (DMG) (ZIP)
Demonstrates how to use NSNetServices to advertise a service using Bonjour.
Sample Code 2005-02-08
PictureSharingBrowser (HTML) (DMG) (ZIP)
Demonstrates how to use NSNetServices to take advantage of Bonjour service discovery and name resolution.
Sample Code 2005-02-08
PortMapper (HTML) (DMG) (ZIP)
Demonstrates Bonjour's NAT port-mapping API, and provides a higher-level Objective-C interface to it.
Sample Code 2008-07-25
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
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
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
Sending an Email (HTML)
QA1084: Shows how to create an email in the user's prefered email application.
Technical Q&As 2004-11-05
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
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
TextLinks (HTML) (DMG) (ZIP)
Programmatically creates links to URLs and other objects and handles clicks in non-URL links.
Sample Code 2003-07-29
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
URL CacheInfo (HTML) (DMG) (ZIP)
Demonstrates resource caching behavior using the Cocoa URL loading system.
Sample Code 2008-06-05
URL Loading System (HTML) (PDF)
Explains how to manipulate URLs and transfer URL contents.
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.
Technical Q&As 2004-03-05
Using the Web Services Core Framework and CFNetwork to Access Remote SOAP Services (HTML)
Learn how to access remote SOAP-based web services that require HTTP Basic or Digest authentication.
Articles 2007-03-07
Web Services Core Programming Guide (HTML) (PDF)
Explains how to use the new Web Services client-side frameworks available in Mac OS X.
Guides 2009-01-06