sendData:completionHandler:
Sends data to a remote application.
Declaration
- (void) sendData:(NSData *) data completionHandler:(void (^)(NSError *error)) completionHandler;Parameters
- data:
The data to send to the remote application.
- completionHandler:
A completion handler called when the send operation completes. The handler receives an error if the send failed, or
nilon success.
Discussion
Calling this function again before the completion handler of a previous send is called is safe; multiple send operations can be in-flight concurrently.