Comms

Top-level communications manager for OctoMY nodes.

Declared in src/libs/libcomms/comms/Comms.hpp
Inherits QObject and QEnableSharedFromThis
Group comms

Detailed description

Comms is the main entry point for node-to-node communication. It manages CommsChannel instances for each available transport (UDP, Bluetooth), handles session lifecycle, and coordinates Courier registration for data exchange.

Each node has exactly one Comms instance, created during node initialization. The Comms object is responsible for:

  • Creating and managing CommsChannel instances for each carrier type
  • Maintaining the session directory for active associate connections
  • Registering and routing Couriers to appropriate sessions
  • Handling honeymoon mode for aggressive connection establishment

This class is explained in the communication-system explanation.

See also CommsChannel, CommsSession, Courier, CommsCarrier.

In this section