ITargetDeviceSocket::Receive

Receive data from 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 Receive
(
    void * Data,
    uint64 BytesToReceive
)

Remarks

Receive data from a connected process on the target device.

This is a blocking operation and it will return only after the expected amount of data has been received 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 Target buffer for the data to receive (it has to be large enough to store BytesToReceive).
BytesToReceive The number of bytes to receive and store in Data.

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