Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/IPlatformHostSocket
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EResultNet Receive
(
void* Buffer, |
Receive data from the connected host PC (blocking operation). | GenericPlatform/GenericPlatformHostSocket.h | |
EResultNet Receive
(
void* Buffer, |
Receive data from the connected host PC. | GenericPlatform/GenericPlatformHostSocket.h |
Receive(void *, uint64)
Description
Receive data from the connected host PC (blocking operation).
| Name | Receive |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformHostSocket.h |
| Include Path | #include "GenericPlatform/GenericPlatformHostSocket.h" |
EResultNet Receive
(
void * Buffer,
uint64 BytesToReceive
)
Status value indicating error or success.
Parameters
| Name | Remarks |
|---|---|
| Buffer | Data to be sent. |
| BytesToReceive | The number of bytes to receive (Buffer has to be large enough). |
Receive(void *, uint64, uint64 &, EReceiveFlags)
Description
Receive data from the connected host PC.
| Name | Receive |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformHostSocket.h |
| Include Path | #include "GenericPlatform/GenericPlatformHostSocket.h" |
EResultNet Receive
(
void * Buffer,
uint64 BytesToReceive,
uint64 & BytesReceived,
EReceiveFlags ReadMode
)
Status value indicating error or success.
Parameters
| Name | Remarks |
|---|---|
| Buffer | Data to be sent. |
| BytesToReceive | The number of bytes to receive (Buffer has to be large enough). |
| BytesReceived | Number of bytes that have been received (equals to BytesToReceive if ReadMode is EReceiveFlags::WaitAll) |
| ReadMode | DontWait if this call should return immediately with the data available and not wait for BytesToReceive number of bytes |