Network
Create network connections to send and receive data using transport and security protocols.
Mentioned in
Overview
Use this framework when you need direct access to protocols like TLS, TCP, and UDP for your custom application protocols. Continue to use URLSession, which is built upon this framework, for loading HTTP- and URL-based resources. For in-depth advice on where to start with networking, see TN3151: Choosing the right networking API.
Topics
Essentials
Connections and Listeners
Network Protocols
Building a custom peer-to-peer protocolConnecting iPadOS and visionOS apps over the local networkNWProtocolTCPNWProtocolTLSNWProtocolQUICNWProtocolUDPNWProtocolIPNWProtocolWebSocketNWProtocolFramer
Network Security and Privacy
Paths and Interfaces
Errors
Network Debugging
Choosing a Network Debugging ToolDebugging HTTP Server-Side ErrorsDebugging HTTPS Problems with CFNetwork Diagnostic LoggingRecording a Packet TraceTaking Advantage of Third-Party Network Debugging ToolsTesting and Debugging L4S in Your App
C-Language Symbols
Structures
nw_interface_radio_type_tnw_multipath_version_tnw_path_unsatisfied_reason_tnw_quic_stream_type_tBonjourBonjourListenerProviderCoderDefaultProtocolStorageFramerIPNWParametersBuilderNWTXTRecordNetworkJSONCoderNetworkPropertyListCoderProtocolMetadataBuilderProtocolStackBuilderProxyConfigurationQUICQUICDatagramQUICStreamTCPTLSTLVTXTRecordDecoderUDPUnexpectedEndpointTypeWebSocketnw_link_quality_t
Classes
Reference
Protocols
BrowserProviderConnectableConnectionStorageDatagramProtocolFramerProtocolListenerProviderMessageProtocolMultiplexProtocolNWParametersProviderNetworkCoderNetworkDecoderNetworkEncoderNetworkFixedWidthIntegerNetworkMetadataProtocolNetworkProtocolOptionsOneToOneProtocolStreamProtocol
Variables
kNWErrorDomainWiFiAwarenw_error_domain_wifi_awarenw_link_quality_goodnw_link_quality_minimalnw_link_quality_moderatenw_link_quality_unknown