Contents

localEndpoint

An object containing details about the socket’s local endpoint.

Declaration

var localEndpoint: NWEndpoint? { get }

Discussion

This endpoint object may be nil when the system calls your handleNewFlow(_:) method; if so, receiving network data populates the object. In such a case, the filter may still perform filtering, based on its socket type, socket family, or socket protocol.

See Also

Getting socket flow properties