Instance Method


Close the flow for further write operations.


func closeWriteWithError(_ 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)

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

func closeReadWithError(Error?)

Close the flow for further read operations.