![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformHostCommunication.h>
Inheritance diagram for FGenericPlatformHostCommunication:Public Member Functions | |
| virtual void | Initialize () override |
| virtual void | Shutdown () override |
| virtual bool | Available () const override |
| virtual IPlatformHostSocketPtr | OpenConnection (uint32 ProtocolIndex, const FString &DebugName, uint32 Version=0, uint32 MinVersion=0) override |
| void | CloseConnection (IPlatformHostSocketPtr Socket) override |
| bool | LaunchOnHost (const char *BinaryPath, const char *CmdLine=nullptr) override |
Public Member Functions inherited from IPlatformHostCommunication | |
| virtual | ~IPlatformHostCommunication () |
Generic implementation of IPlatformHostCommunication.
Check if the host communication system is available and can be used.
Implements IPlatformHostCommunication.
|
inlineoverridevirtual |
Close a communication channel previously opened using OpenConnection.
| Socket | Socket object. |
Implements IPlatformHostCommunication.
Initialize the host communication system (done by IPlatformFeaturesModule).
Implements IPlatformHostCommunication.
|
inlineoverridevirtual |
Launch an executable on the connected host PC.
| BinaryPath | Path to the executable on the PC to launch. |
| CmdLine | (optional) Command line parameters to pass to the executable. |
Implements IPlatformHostCommunication.
|
inlineoverridevirtual |
Open a communication channel with the host PC.
The connected PC is determined in a platform-dependent way.
Note that opening a connection does not necessarily mean that the host PC is ready to communicate. Check the state of the socket before attempting to send/receive data. There can be only one connection using any given ProtocolIndex. Attempts to use a ProtocolIndex while there is already a connection using it will fail.
| ProtocolIndex | Arbitrary 0-based number indicating the communication channel (the same number needs to be used on the host PC). |
| DebugName | Name of this communication channel used for diagnostic purposes. |
| Version | (optional) Version of the communication protocol (ProtocolIndex) used to verify compatibility with the host PC. |
| MinVersion | (optional) Minimum version of the communication protocol (ProtocolIndex) that is supported. |
Implements IPlatformHostCommunication.
Shutdown the host communication system (done by IPlatformFeaturesModule).
Implements IPlatformHostCommunication.