An object to manage a UDP session to a network endpoint.
- iOS 9.0+
- macOS 10.11+
Since UDP does not include a handshake with the remote endpoint as part of its protocol, it is up to the client of the UDP session to provide feedback on the viability of the current endpoint. If a session is opened to a hostname, the system will resolve that hostname into potentially several IP addresses. Once the session state is
NWUDPSession, the client should try to write and read datagrams. If there is no response from the remote endpoint, the client can try the next address that was resolved using