Navigation
API > API/Developer > API/Developer/TargetPlatform > API/Developer/TargetPlatform/ITargetDeviceSocket
Description
Send data to a connected process on the target device.
This is a blocking operation and it will return only after the whole buffer has been sent or an error occurs (e.g. the target disconnects).
False return value typically indicates that the remote peer has closed the connection on their side. If it happens, this socket should be closed as well.
| Name | Send |
| Type | function |
| Header File | /Engine/Source/Developer/TargetPlatform/Public/Interfaces/ITargetDeviceSocket.h |
| Include Path | #include "Interfaces/ITargetDeviceSocket.h" |
bool Send
(
const void * Data,
uint64 BytesToSend
)
true if communication was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Data | Buffer containing data to be sent (. |
| BytesToSend | The number of bytes from Data that are to be sent. |
See Also
-
IHostDevice::OpenConnection
-
IHostDevice::CloseConnection