vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::NetCore Struct Reference

What a session's server and client halves share: the socket, what the two ends agreed, and the buffers a datagram is built in. More...

#include <net_session.h>

Public Attributes

uint32_t tickRate = 0
 Fixed for the session.
uint64_t actionNames = 0
bool ticked = false
 A tick has run, so the count is real.
uint64_t world = 0
 Which world this end loaded, or zero for none.
uint32_t serverTick = 0
std::vector< uint8_t > payload
 What an outgoing message is written into.
std::vector< uint8_t > datagram
 The datagram last received, or last framed to send.

Static Public Attributes

static constexpr size_t MAX_READS_PER_FRAME = 512
 Datagrams read in one frame.

Detailed Description

What a session's server and client halves share: the socket, what the two ends agreed, and the buffers a datagram is built in.

Member Data Documentation

◆ MAX_READS_PER_FRAME

size_t Vkm::Engine::NetCore::MAX_READS_PER_FRAME = 512
staticconstexpr

Datagrams read in one frame.

Draining until empty would make the frame's cost the sender's choice. What is left waits.

◆ actionNames

uint64_t Vkm::Engine::NetCore::actionNames = 0

Which action has which slot: this end's own, or on a server whose behaviors have defined none yet, its first player's.

◆ serverTick

uint32_t Vkm::Engine::NetCore::serverTick = 0

The authority's tick: its own count on a server; on a client, the newest a snapshot carried, since the two clocks are unrelated.


The documentation for this struct was generated from the following file: