Instance Method

writeData:withCompletionHandler:

Write data to the flow.

Declaration

- (void)writeData:(NSData *)data withCompletionHandler:(void (^)(NSError *error))completionHandler;

Parameters

data

An NSData object containing the data to write.

completionHandler

A block that will be executed by the system on an internal system thread when the data is written into the receive buffer of the socket associated with the flow. The caller should use this callback as an indication that it is possible to write more data to the flow without using up excessive buffer memory. If an error occurs while writing the data then a non-nil NSError object is passed to the block. See NEAppProxyFlowError in NEAppProxyFlow for a list of possible errors.

See Also

Handling Flow Data

- readDataWithCompletionHandler:

Read data from the flow.