Framework

Network

Create network connections to send and receive data using transport and security protocols.

Overview

Use this framework when you need direct access to protocols like TLS, TCP, and UDP for your custom application protocols. Continue to use NSURLSession, which is built upon this framework, for loading HTTP- and URL-based resources.

Topics

First Steps

Implementing netcat with Network Framework

Build a simple netcat tool that establishes network connections and transfers data.

Connections and Listeners

nw_connection_t

A bidirectional data connection between a local endpoint and a remote endpoint.

nw_listener_t

An object you use to listen for incoming network connections.

nw_endpoint_t

An endpoint in a network connection.

nw_parameters_t

A grouping of parameters you use to create a network connection or listener.

nw_advertise_descriptor_t

A description used to advertise the Bonjour service that a listener provides.

Paths and Monitors

nw_path_t

An object that contains information about the properties of the network used by a connection, or that are available to your app.

nw_path_monitor_t

An observer that you use to monitor and react to network changes.

Network Interfaces

nw_interface_t

A network interface used by a network connection to send and receive data.

Network Protocols

Types that define the identity of a protocol, the options to use at setup time, and the available dynamic properties.

nw_protocol_definition_t

The abstract superclass for identifying a network protocol.

nw_protocol_metadata_t

The abstract superclass for specifying metadata about a network protocol.

nw_protocol_options_t

The abstract superclass for configuring the options of a network protocol.

Errors

nw_error_t

The errors used by the Network framework.

nw_error_domain_t

The error domain for errors used by the Network framework.

Network Debugging

Choosing a Network Debugging Tool

Decide which tool works best for your network debugging problem.

Debugging HTTP Server-Side Errors

Understand HTTP server-side errors and how to debug them.

Debugging HTTPS Problems with CFNetwork Diagnostic Logging

Use CFNetwork diagnostic logging to investigate HTTP and HTTPS problems.

Recording a Packet Trace

Learn how to record a low-level trace of network traffic.

Taking Advantage of Third-Party Network Debugging Tools

Learn about the available third-party network debugging tools.