Instance Method

closeWriteWithError(_:)

Close the flow for further write operations.

Declaration

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

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

func closeReadWithError(Error?)

Close the flow for further read operations.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software