Instance Method

closeReadWithError(_:)

Close the flow for further read operations.

Declaration

func closeReadWithError(_ error: Error?)

Parameters

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 closeWriteWithError(Error?)

Close the flow for further write operations.