ITargetDeviceSocket::Send

Send data to a connected process on the target device.

Unreal Engine C++ API Reference > Developer > TargetPlatform > Interfaces > ITargetDeviceSocket

References

   
Module TargetPlatform
Header /Engine/Source/Developer/TargetPlatform/Public/Interfaces/ITargetDeviceSocket.h
Include #include "Interfaces/ITargetDeviceSocket.h"
bool Send
(
    const void * Data,
    uint64 BytesToSend
)

Remarks

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. true if communication was successful, false otherwise.

Parameters

Name Description
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


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library