tec::networking::ClientConnection
#include <client-connection.hpp>
Inherits from std::enable_shared_from_this< ClientConnection >
Public Functions
| Name | |
|---|---|
| void | RegisterLuaType(sol::state & ) |
| ClientConnection(tcp::socket _socket, tcp::endpoint _endpoint, Server * server) | |
| ~ClientConnection() | |
| void | StartRead() |
| void | Shutdown() |
| void | QueueWrite(MessagePool::ptr_type msg) |
| void | QueueWrite(MessageOut & msg) |
| void | QueueWrite(MessageOut && msg) |
| eid | GetID() |
| tcp::endpoint | GetEndpoint() |
| void | OnJoinWorld() |
| void | OnLeaveWorld() |
| void | OnOtherLeaveWorld(eid entity_id) |
| void | ConfirmStateID(state_id_t state_id) |
| state_id_t | GetLastConfirmedStateID() |
| void | UpdateGameState(const GameState & full_state) |
| MessageOut | PrepareGameStateUpdateMessage(state_id_t current_state_id, uint64_t current_timestamp) |
| size_t | GetPartialMessageCount() const |
| bool | ReadyToReceive() const |
Public Functions Documentation
function RegisterLuaType
static void RegisterLuaType(
sol::state &
)
function ClientConnection
ClientConnection(
tcp::socket _socket,
tcp::endpoint _endpoint,
Server * server
)
function ~ClientConnection
~ClientConnection()
function StartRead
void StartRead()
function Shutdown
void Shutdown()
function QueueWrite
void QueueWrite(
MessagePool::ptr_type msg
)
function QueueWrite
void QueueWrite(
MessageOut & msg
)
function QueueWrite
void QueueWrite(
MessageOut && msg
)
function GetID
inline eid GetID()
function GetEndpoint
inline tcp::endpoint GetEndpoint()
function OnJoinWorld
void OnJoinWorld()
function OnLeaveWorld
void OnLeaveWorld()
function OnOtherLeaveWorld
void OnOtherLeaveWorld(
eid entity_id
)
function ConfirmStateID
inline void ConfirmStateID(
state_id_t state_id
)
function GetLastConfirmedStateID
inline state_id_t GetLastConfirmedStateID()
function UpdateGameState
void UpdateGameState(
const GameState & full_state
)
function PrepareGameStateUpdateMessage
MessageOut PrepareGameStateUpdateMessage(
state_id_t current_state_id,
uint64_t current_timestamp
)
function GetPartialMessageCount
inline size_t GetPartialMessageCount() const
function ReadyToReceive
inline bool ReadyToReceive() const
Updated on 2022-07-24 at 19:27:35 +0000