CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::NetworkEvent Struct Reference

Notification of a connection lifecycle change (connect, disconnect, buffer state...). More...

#include <NetworkManager.h>

Public Attributes

uint64 cid
 Channel id the event belongs to.
uint64 conid
 Connection id within the channel.
uint64 time
 Event timestamp (ms epoch).
uint8 type
 NETWORKEVENT_* event type.
uint8 protocol
 PROTOCOL_* of the affected connection.

Detailed Description

Notification of a connection lifecycle change (connect, disconnect, buffer state...).

Delivered to NetworkReceiver::receiveNetworkEvent() or via NetworkChannel::waitForNetworkEvent(). See the NETWORKEVENT_* constants.

Definition at line 70 of file NetworkManager.h.

Member Data Documentation

◆ cid

uint64 cmlabs::NetworkEvent::cid

Channel id the event belongs to.

Definition at line 71 of file NetworkManager.h.

Referenced by cmlabs::NetworkChannel::enterNetworkEvent().

◆ conid

uint64 cmlabs::NetworkEvent::conid

Connection id within the channel.

Definition at line 72 of file NetworkManager.h.

Referenced by cmlabs::NetworkChannel::enterNetworkEvent().

◆ protocol

uint8 cmlabs::NetworkEvent::protocol

PROTOCOL_* of the affected connection.

Definition at line 75 of file NetworkManager.h.

Referenced by cmlabs::NetworkChannel::enterNetworkEvent().

◆ time

uint64 cmlabs::NetworkEvent::time

Event timestamp (ms epoch).

Definition at line 73 of file NetworkManager.h.

Referenced by cmlabs::NetworkChannel::enterNetworkEvent().

◆ type


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