Ark Server API (ASA) - Wiki
|
#include <GenericPlatformHostSocket.h>
Public Types | |
enum class | EResultNet : uint8 { Ok , ErrorUnknown , ErrorInvalidArgument , ErrorInvalidConnection , ErrorInterrupted , ErrorHostNotConnected } |
enum class | EConnectionState : uint8 { Unknown , Created , Connected , Disconnected , Closed } |
Public Member Functions | |
virtual EResultNet | Send (const void *Buffer, uint64 BytesToSend)=0 |
virtual EResultNet | Receive (void *Buffer, uint64 BytesToReceive)=0 |
virtual EConnectionState | GetState () const =0 |
virtual | ~IPlatformHostSocket () |
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.
Definition at line 20 of file GenericPlatformHostSocket.h.
State of the socket determining its ability to send/receive data.
Enumerator | |
---|---|
Unknown | |
Created | |
Connected | |
Disconnected | |
Closed |
Definition at line 42 of file GenericPlatformHostSocket.h.
|
strong |
Status values returned by Send and Receive members.
Enumerator | |
---|---|
Ok | |
ErrorUnknown | |
ErrorInvalidArgument | |
ErrorInvalidConnection | |
ErrorInterrupted | |
ErrorHostNotConnected |
Definition at line 28 of file GenericPlatformHostSocket.h.
|
inlinevirtual |
Destructor.
Definition at line 79 of file GenericPlatformHostSocket.h.
|
pure virtual |
Get the state of the socket (determines if the host pc is connected and communication is possible).
|
pure virtual |
Receive data from the connected host PC (blocking operation).
Buffer | Data to be sent. |
BytesToReceive | The number of bytes to receive (Buffer has to be large enough). |
|
pure virtual |
Send data to the connected host PC (blocking operation).
Buffer | Data to be sent. |
BytesToSend | The number of bytes to send. |