Instance Property

localEndpoint

An NWEndpoint object containing details about the socket’s local endpoint. This endpoint object may be nil when [NEFilterDataProvider handleNewFlow:] is invoked; if so, it will be populated upon receiving network data. In such a case, flow filtering may still be performed based on its socket type, socket family, or socket protocol.

Declaration

var localEndpoint: NWEndpoint? { get }

See Also

Getting Socket Flow Properties

var remoteEndpoint: NWEndpoint?

An NWEndpoint object containing details about the socket’s remote endpoint. This endpoint object may be nil when [NEFilterDataProvider handleNewFlow:] is invoked; if so, it will be populated upon receiving network data. In such a case, flow filtering may still be performed based on its socket type, socket family, or socket protocol.

var socketFamily: Int32

The protocol family of the socket. For example, PF_INET.

var socketType: Int32

The type of the socket. For example, SOCK_STREAM.

var socketProtocol: Int32

The protocol of the socket. For example, IPPROTO_TCP.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software