class

FSpatialStreamClient

Module
Networking
Header
#include "Networking/Replication/SpatialStream.h"
Namespace
Mowo

Type aliases

AliasDescription
using FApplyFn = std::function<void(const FSpatialKey& key, uint32_t version, bool snapshot, const uint8_t* payload, size_t len)>Called once per entry that advances a key, in version order per key.
using FSendFn = std::function<void(const uint8_t* data, size_t len)>

Public functions

ReturnsNameDescription
voidSetApplyFn
voidSetInterestDeclares the keys this client wants, nearest first, together with the version it already holds for each.
voidOnPacketA packet from the server; acknowledges what it applied.
uint32_tGetVersion
voidSetKnownVersion
voidForget
uint64_tGetEntriesApplied
uint64_tGetEntriesIgnored
uint64_tGetMalformedPackets

Function details

SetApplyFn

C++
void SetApplyFn(FApplyFn apply)

SetInterest

C++
void SetInterest(const std::vector<FSpatialKey>& keysNearestFirst, const FSendFn& send)

Declares the keys this client wants, nearest first, together with the version it already holds for each. The server replies by streaming the difference.

OnPacket

C++
void OnPacket(const uint8_t* data, size_t len, const FSendFn& sendAck)

A packet from the server; acknowledges what it applied.

GetVersion

C++
uint32_t GetVersion(const FSpatialKey& key) const

SetKnownVersion

C++
void SetKnownVersion(const FSpatialKey& key, uint32_t version)

Forget

C++
void Forget(const FSpatialKey& key)

GetEntriesApplied

C++
uint64_t GetEntriesApplied() const

GetEntriesIgnored

C++
uint64_t GetEntriesIgnored() const

GetMalformedPackets

C++
uint64_t GetMalformedPackets() const
Generated from Networking/Replication/SpatialStream.h via networking.json · Nov 4, 2026Version 1.0.0