localEndpoint(_:)
Specify a specific endpoint to use as the local endpoint.
Declaration
func localEndpoint(_ endpoint: NWEndpoint?) -> SelfParameters
- endpoint:
The local endpoint to require, or
nilif none.
Discussion
For connections, this will be used to initiate traffic; for listeners, this will be used for receiving incoming connections.