Skip to content

NetEvent ​

Struct

Source: NetTypes.h

Description ​

One fixed-capacity event queued for the application.

The payload buffer is inline at the configured ceiling (platforms::config::NetMaxPayload), so delivering an event never allocates. Field order is declaration order for alignment and is pinned by the session's memory budget; do not reorder casually.

Properties ​

NameTypeDescription
typeNetEventTypeEvent kind.
peerIduint8_tSender / affected peer slot.
nodeIduint8_tApplication label of that peer.
sequenceuint32_tWire sequence that produced the event.
lengthuint16_tValid bytes in @ref payload.
payloaduint8_tInline application bytes.

Released under the MIT License.