Skip to content

NetSessionConfig ​

Struct

Source: NetSession.h

Description ​

Values the application supplies once, when the session starts.

The defaults come from platforms::config, so an application that is happy with the build-time limits only has to override the fields it cares about. Two fields have sentinel semantics: nodeId == 0 derives the label from the local MAC, and bootId == 0 asks the session to generate a per-boot value.

Properties ​

NameTypeDescription
channeluint8_tWi-Fi channel shared by every peer, 1..13.
nodeIduint8_tApplication label; 0 derives it from the MAC.
bootIduint16_tBoot generation; 0 generates one per boot.
discoveryboolfalse disables HELLO and requires seeded peers.
helloIntervalMsuint16_tHELLO period.
peerTimeoutMsuint16_tOffline threshold.
ackTimeoutMsuint16_tReliable ACK timeout.
maxRetriesuint8_tRetries before SendFailed.

Released under the MIT License.