Ark Server API (ASA) - Wiki
|
#include <GenericPlatformHostCommunication.h>
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.
Definition at line 98 of file GenericPlatformHostCommunication.h.
Check if the host communication system is available and can be used.
Implements IPlatformHostCommunication.
Definition at line 110 of file GenericPlatformHostCommunication.h.
|
inlineoverridevirtual |
Close a communication channel previously opened using OpenConnection.
Socket | Socket object. |
Implements IPlatformHostCommunication.
Definition at line 120 of file GenericPlatformHostCommunication.h.
Initialize the host communication system (done by IPlatformFeaturesModule).
Implements IPlatformHostCommunication.
Definition at line 102 of file GenericPlatformHostCommunication.h.
|
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.
Definition at line 124 of file GenericPlatformHostCommunication.h.
|
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.
Definition at line 115 of file GenericPlatformHostCommunication.h.
Shutdown the host communication system (done by IPlatformFeaturesModule).
Implements IPlatformHostCommunication.
Definition at line 106 of file GenericPlatformHostCommunication.h.