CFNetwork Programming Guide
PDF
Introduction
CFNetwork Concepts
When to Use CFNetwork
CFNetwork Infrastructure
CFSocket API
CFStream API
CFNetwork API Concepts
CFFTP API
CFHTTP API
CFHTTPAuthentication API
CFHost API
CFNetServices API
CFNetDiagnostics API
Working with Streams
Working with Read Streams
Working with Write Streams
Preventing Blocking When Working with Streams
Using Polling to Prevent Blocking
Using a Run Loop to Prevent Blocking
Navigating Firewalls
Communicating with HTTP Servers
Creating a CFHTTP Request
Creating a CFHTTP Response
Deserializing an Incoming HTTP Request
Deserializing an Incoming HTTP Response
Using a Read Stream to Serialize and Send HTTP Requests
Serializing and Sending an HTTP Request
Checking the Response
Handling Authentication Errors
Handling Redirection Errors
Cancelling a Pending Request
Communicating with Authenticating HTTP Servers
Handling Authentication
Keeping Credentials in Memory
Keeping Credentials in a Persistent Store
Authenticating Firewalls
Working with FTP Servers
Downloading a File
Setting Up the FTP Streams
Implementing the Callback Function
Uploading a File
Creating a Remote Directory
Downloading a Directory Listing
Using Network Diagnostics
Revision History