|
Nebula
|
#include <clientconnection.h>
Public Member Functions | |
| ClientConnection () | |
| constructor | |
| virtual | ~ClientConnection () |
| destructor | |
| void | Initialize (BaseMultiplayerServer *server, HSteamNetConnection connectionId) |
| bool | IsConnected () const |
| get the connection status | |
| virtual void | Shutdown () |
| shutdown the connection | |
| void | SetClientGroup (ClientGroup group) |
| ClientGroup | GetClientGroup () const |
| uint32_t | GetConnectionId () const |
| Timing::Time | GetCurrentPing () const |
| Gets the estimated current packet roundtrip time (server->client->server). | |
| void | DrawNetworkDebugInfo () |
| draw imgui network debug information | |
| uint64_t | GetUserData () const |
| void | SetUserData (uint64_t) |
Protected Attributes | |
| BaseMultiplayerServer * | server |
| ClientGroup | group = ClientGroup::DontCare |
| HSteamNetConnection | connectionId = k_HSteamNetConnection_Invalid |
| uint64_t | userData |
| Multiplayer::ClientConnection::ClientConnection | ( | ) |
constructor
|
virtual |
destructor
| void Multiplayer::ClientConnection::DrawNetworkDebugInfo | ( | ) |
draw imgui network debug information
|
inline |
|
inline |
| Timing::Time Multiplayer::ClientConnection::GetCurrentPing | ( | ) | const |
Gets the estimated current packet roundtrip time (server->client->server).
|
inline |
| void Multiplayer::ClientConnection::Initialize | ( | BaseMultiplayerServer * | server, |
| HSteamNetConnection | connectionId ) |
| bool Multiplayer::ClientConnection::IsConnected | ( | ) | const |
get the connection status
| void Multiplayer::ClientConnection::SetClientGroup | ( | ClientGroup | group | ) |
|
inline |
|
virtual |
shutdown the connection
|
protected |
|
protected |
|
protected |
|
protected |