Skip to main content

Module connection

Module connection 

Source
Expand description

§VCL Connection

VCLConnection is the main entry point for VCL Protocol. It manages the full lifecycle of a secure UDP connection:

  • X25519 ephemeral handshake
  • Packet encryption, signing, and chain validation
  • Replay protection
  • Session management (close, timeout)
  • Connection events via async mpsc channel
  • Ping / heartbeat with latency measurement
  • Mid-session key rotation
  • Automatic packet fragmentation and reassembly
  • Flow control with sliding window

§Logging

This module uses the tracing crate. Enable with:

tracing_subscriber::fmt::init();

Structs§

VCLConnection
A secure VCL Protocol connection over UDP.