Class

NEAppProxyFlow

An abstract base class shared by NEAppProxyTCPFlow and NEAppProxyUDPFlow.

Declaration

@interface NEAppProxyFlow : NSObject

Overview

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.

Topics

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

metaData

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

Relationships

Inherits From

See Also

Handling Flows

NEAppProxyTCPFlow

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

NEAppProxyUDPFlow

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