NAME
mesh.h - Bark peer-to-peer WebRTC mesh signaling and data transport.
SYNOPSIS
Classes
Mesh peer lifecycle and message callbacks.
Typedefs
Opaque P2P mesh transport handle.
Mesh peer lifecycle and message callbacks.
Functions
Create a DataChannel mesh controller backed by rtc.
Destroy the mesh controller and close all peer sessions.
Set the local peer identifier used for deterministic offer-glare tie-breaking.
Configure chunk part size, send buffer high-water mark, and connect timeout (ms).
Initiate or reuse a DataChannel connection to peer_id.
Deliver an incoming signaling envelope (offer, answer, or ice) from peer_id.
Forward bark_rtc_cbs_t::on_dc_open into the mesh controller.
Forward bark_rtc_cbs_t::on_dc_msg into the mesh controller.
Forward bark_rtc_cbs_t::on_dc_close into the mesh controller.
Flush queued outbound messages and expire timed-out peer handshakes.
Send a UTF-8 JSON text payload to peer_id (automatically chunked if larger than part_size).
Send a raw binary payload to peer_id.
Return the number of buffered outbound bytes for peer_id.
Return non-zero if peer_id has an open DataChannel.
Return non-zero if a handshake with peer_id is currently in progress.
Return the active signaling session ID (sid) for peer_id, or NULL.
Close and clean up the DataChannel session for peer_id.
Close all peer DataChannel sessions.
Detailed Description
Bark peer-to-peer WebRTC mesh signaling and data transport.
P2P WebRTC DataChannel mesh transport layered over bark_rtc_t.
Handles per-peer session tracking, simultaneous-offer glare tie-breaking, outbound queueing with high-water flushing, and transparent JSON message chunking and multi-stream reassembly.
Author
Generated automatically by Doxygen for Bark from the source code.