Instance Method

openWithLocalEndpoint:completionHandler:

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

Declaration

- (void)openWithLocalEndpoint:(NWHostEndpoint *)localEndpoint completionHandler:(void (^)(NSError *error))completionHandler;

Parameters

localEndpoint

An NWHostEndpoint object containing the port and address to set as the local port and local address of the socket associated with the flow.

completionHandler

A block that will be executed when the system is ready to handle the flow. If an error occurs while the flow is being opened then the error parameter will be set to a non-nil NSError object. See NEAppProxyFlowError below for a list of possible error codes. If the flow is opened successfully then the error parameter will be set to nil.

Discussion

NEAppProxyFlow objects are received by the App Proxy Provider in an unopened state. The App Proxy Provider should take whatever steps are necessary to be ready to handle the flow’s data, and then call this method.

See Also

Managing the Flow Life Cycle

- closeReadWithError:

Close the flow for further read operations.

- closeWriteWithError:

Close the flow for further write 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