DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Client-side handling features. More...
Functions | |
DCS_API Socket | Connect (DCS::Utils::String host, i32 port) |
Connect to a running server. More... | |
DCS_API void | Authenticate (Socket socket, DCS::Utils::String username, DCS::Utils::String password) |
Authenticates a valid connection. Call after Connect. More... | |
DCS_API bool | StartThread (Socket connection) |
Starts the client thread on a established connection. More... | |
DCS_API void | StopThread (Socket connection) |
Stops the client thread on a established connection (Forces disconnect). More... | |
DCS_API i16 | GetMillisLatency () |
Gets the current connection latency in milliseconds. More... | |
Client-side handling features.
void DCS::Network::Client::Authenticate | ( | Socket | socket, |
DCS::Utils::String | username, | ||
DCS::Utils::String | password | ||
) |
Authenticates a valid connection. Call after Connect.
socket | The connection's socket. |
username | Username. |
password | Password. |
DCS::Network::Socket DCS::Network::Client::Connect | ( | DCS::Utils::String | host, |
i32 | port | ||
) |
Connect to a running server.
DCS::i16 DCS::Network::Client::GetMillisLatency | ( | ) |
Gets the current connection latency in milliseconds.
bool DCS::Network::Client::StartThread | ( | Socket | connection | ) |
Starts the client thread on a established connection.
connection | The connection between server and client returned by Connect(DCS::Utils::String, i32). |
void DCS::Network::Client::StopThread | ( | Socket | connection | ) |
Stops the client thread on a established connection (Forces disconnect).
connection | The connection between server and client that is currently active. |