GOG GALAXY SDK Documentation
|
The interface for communicating with a custom endpoint. More...
#include <ICustomNetworking.h>
Public Member Functions | |
virtual void | OpenConnection (const char *connectionString, IConnectionOpenListener *const listener=NULL)=0 |
Open a connection with a specific endpoint. More... | |
virtual void | CloseConnection (ConnectionID connectionID, IConnectionCloseListener *const listener=NULL)=0 |
Close a connection. More... | |
virtual void | SendData (ConnectionID connectionID, const void *data, uint32_t dataSize)=0 |
Send binary data over a specific connection. More... | |
virtual uint32_t | GetAvailableDataSize (ConnectionID connectionID)=0 |
Returns the number of bytes in a specific connection incoming buffer. More... | |
virtual void | PeekData (ConnectionID connectionID, void *dest, uint32_t dataSize)=0 |
Reads binary data received from a specific connection. More... | |
virtual void | ReadData (ConnectionID connectionID, void *dest, uint32_t dataSize)=0 |
Reads binary data received from a specific connection. More... | |
virtual void | PopData (ConnectionID connectionID, uint32_t dataSize)=0 |
Removes a given number of bytes from a specific connection incoming buffer. More... | |
The interface for communicating with a custom endpoint.
|
pure virtual |
Close a connection.
This call is asynchronous. Responses come to the IConnectionCloseListener.
[in] | connectionID | The ID of the connection. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Returns the number of bytes in a specific connection incoming buffer.
[in] | connectionID | The ID of the connection. |
|
pure virtual |
Open a connection with a specific endpoint.
This call is asynchronous. Responses come to the IConnectionOpenListener.
[in] | connectionString | The string which contains connection info. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Reads binary data received from a specific connection.
The data that was read this way is left in the connection incoming buffer.
[in] | connectionID | The ID of the connection. |
[in,out] | dest | The buffer to pass the data to. |
[in] | dataSize | The size of the data. |
|
pure virtual |
Removes a given number of bytes from a specific connection incoming buffer.
[in] | connectionID | The ID of the connection. |
[in] | dataSize | The numbers of bytes to be removed from the buffer. |
|
pure virtual |
Reads binary data received from a specific connection.
The data that was read this way is removed from the connection incoming buffer.
[in] | connectionID | The ID of the connection. |
[in,out] | dest | The buffer to pass the data to. |
[in] | dataSize | The size of the data. |
|
pure virtual |
Send binary data over a specific connection.
[in] | connectionID | The ID of the connection. |
[in] | data | The data to send. |
[in] | dataSize | The size of the data. |