Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/GenericPlatform
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformHostSocket.h |
| Include | #include "GenericPlatform/GenericPlatformHostSocket.h" |
Syntax
class IPlatformHostSocket
Remarks
Interface for sockets supporting direct communication between the game running on the target device and a connected PC.
It represents a custom communication channel and may not be implemented on all platforms.
It is meant to be used in development ONLY.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EConnectionState | GetState () |
Get the state of the socket (determines if the host pc is connected and communication is possible). | |
| EResultNet | Receive
(
void* Buffer, |
Receive data from the connected host PC (blocking operation). | |
| EResultNet | Send
(
const void* Buffer, |
Send data to the connected host PC (blocking operation). |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EConnectionState | State of the socket determining its ability to send/receive data. | ||
| EResultNet | Status values returned by Send and Receive members. |