Ark Server API (ASA) - Wiki
|
#include <GenericPlatformHostCommunication.h>
Public Member Functions | |
virtual void | Initialize ()=0 |
virtual void | Shutdown ()=0 |
virtual bool | Available () const =0 |
virtual IPlatformHostSocketPtr | OpenConnection (uint32 ProtocolIndex, const FString &DebugName, uint32 Version=0, uint32 MinVersion=0)=0 |
virtual void | CloseConnection (IPlatformHostSocketPtr Socket)=0 |
virtual bool | LaunchOnHost (const char *BinaryPath, const char *CmdLine=nullptr)=0 |
virtual | ~IPlatformHostCommunication () |
Interface for communication between the game running on the target device and the connected host pc.
It represents a custom communication channel and may not be implemented on all platforms.
It is meant to be used in development ONLY.
Definition at line 31 of file GenericPlatformHostCommunication.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 89 of file GenericPlatformHostCommunication.h.
Check if the host communication system is available and can be used.
Implemented in FGenericPlatformHostCommunication.
|
pure virtual |
Close a communication channel previously opened using OpenConnection.
Socket | Socket object. |
Implemented in FGenericPlatformHostCommunication.
Initialize the host communication system (done by IPlatformFeaturesModule).
Implemented in FGenericPlatformHostCommunication.
|
pure virtual |
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. |
Implemented in FGenericPlatformHostCommunication.
|
pure virtual |
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. |
Implemented in FGenericPlatformHostCommunication.
Shutdown the host communication system (done by IPlatformFeaturesModule).
Implemented in FGenericPlatformHostCommunication.