Skip to main content

Module client

Module client 

Source

Structsยง

Consumer
Unit structs to represent the Role::Consumer at the type level for better safety and clarity.
HydraClient
HydraClient connects to the relay server as a producer or consumer, performs handshake, and sends/receives encrypted frames. It maintains an internal memory pool (18 mb) for zero-copy crypto and buffering. The broadcast method allows producers to send encrypted frames to all connected consumers in the same session, while the recv method allows consumers to receive and decrypt frames from the producer.
Producer
Unit structs to represent the Role::Producer at the type level for better safety and clarity.