An abstract base class shared by NEAppProxyTCPFlow and NEAppProxyUDPFlow.


@interface NEAppProxyFlow : NSObject


App Proxy Providers receive network connections to be proxied in the form of NEAppProxyFlow objects, which are passed to the App Proxy Provider via the -[NEAppProxyProvider handleNewFlow:] method.

NEAppProxyFlow objects are initially in an unopened state. Before they can be used to transmit network data, they must be opened using the openWithLocalEndpoint:completionHandler: method. When you are finished with a flow, you should call closeReadWithError: and closeWriteWithError: and then release the NEAppProxyFlow object.


Managing the Flow Life Cycle

- openWithLocalEndpoint:completionHandler:

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

- closeReadWithError:

Close the flow for further read operations.

- closeWriteWithError:

Close the flow for further write operations.

Getting Flow Information


An NEFlowMetaData object containing information about the source app of the flow.

Instance Properties

Instance Methods


Inherits From

See Also

Handling Flows


An object for reading and writing data to and from a TCP connection being proxied by the provider.


An object for reading and writing data to and from a UDP conversation being proxied by the provider.

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