Instance Method


Close the flow for further read operations.


func closeReadWithError(_ error: Error?)



An NSError object indicating to the system the error that led to the closure. If the flow is not being closed due to an error, this parameter should be set to nil. See NEAppProxyFlowError below for a list of acceptable error codes.

See Also

Managing the Flow Life Cycle

func open(withLocalEndpoint: NWHostEndpoint?, completionHandler: (Error?) -> Void)

Open the flow, indicating to the system that the caller is ready to start receiving and sending data for the flow.

func closeWriteWithError(Error?)

Close the flow for further write operations.