---
title: "sendData:completionHandler:"
framework: avsystemrouting
role: symbol
role_heading: Instance Method
path: "avsystemrouting/avsystemroutedatachannel/senddata:completionhandler:"
---

# sendData:completionHandler:

Sends data to a remote application.

## Declaration

```occ
- (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 nil on success.

## Discussion

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.
