class
FNetSimQueue
The injector itself: one instance per direction (send / receive) inside a transport. Submit hands a frame over; Release yields the ones now due.
- Module
- Networking
- Header
#include "Networking/NetSimulation.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
explicit FNetSimQueue(uint64_t seed = 0x9E3779B97F4A7C15ull) | FNetSimQueue |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetSeed | |
void | SetSettingsOverride | The settings this queue applies. |
void | ClearSettingsOverride | |
const FNetSimSettings& | GetSettings | |
bool | IsActive | |
bool | Submit | Takes ownership of one frame. |
void | Release | Move every frame due at nowMs into out, oldest release first. |
void | Clear | |
const FNetSimStats& | GetStats | |
void | ResetStats | |
size_t | GetPendingCount |
Function details
FNetSimQueue
C++
explicit FNetSimQueue(uint64_t seed = 0x9E3779B97F4A7C15ull)SetSeed
C++
void SetSeed(uint64_t seed)SetSettingsOverride
C++
void SetSettingsOverride(const FNetSimSettings& settings)The settings this queue applies. Left unset it follows FNetSimulator::Current(), which is what a live transport wants; a test pins its own so it does not depend on cvar state.
ClearSettingsOverride
C++
void ClearSettingsOverride()GetSettings
C++
const FNetSimSettings& GetSettings() constIsActive
C++
bool IsActive() constSubmit
C++
bool Submit(uint32_t peerId, const void* data, size_t size, uint8_t channel, uint64_t nowMs)Takes ownership of one frame. Returns false when simulation is off — the caller then sends or delivers it directly, so an idle netem costs one branch and no copy. A dropped frame still returns true: it WAS taken, it just never comes back out.
Release
C++
void Release(uint64_t nowMs, std::vector<FNetSimFrame>& out)Move every frame due at nowMs into out, oldest release first.
Clear
C++
void Clear()GetStats
C++
const FNetSimStats& GetStats() constResetStats
C++
void ResetStats()GetPendingCount
C++
size_t GetPendingCount() constGenerated from Networking/NetSimulation.h via networking.json · Nov 4, 2026Version 1.0.0