Skip to main content

Module backbone

Module backbone 

Source
Expand description

Backbone TCP mesh interface using Linux epoll.

Server mode: listens on a TCP port, accepts peer connections, spawns dynamic per-peer interfaces. Uses a single epoll thread to multiplex all client sockets. HDLC framing for packet boundaries.

Client mode: connects to a remote backbone server, single TCP connection with HDLC framing. Reconnects on disconnect.

Matches Python BackboneInterface.py.

Structs§

BackboneClientConfig
Configuration for a backbone client interface.
BackboneConfig
Configuration for a backbone interface.

Functions§

start
Start a backbone interface. Binds TCP listener, spawns epoll thread.
start_client
Connect and start the reader thread. Returns the writer for the driver.