Skip to main content

Module legs

Module legs 

Source
Expand description

Transport Legs Module

Pluggable physical transports, each a SessionTransport impl. The browser wasm32 target exposes a WebSocket leg (Phase 3.3) since browsers cannot open raw TCP/UDP sockets; WASI Preview 2 uses a TCP leg; bare-metal uses the embedded leg; the off-by-default mimicry feature adds a TLS-mimicry leg.

The native KCP / TCP / FakeTLS legs and the TransportLeg multipath trait were removed in Phase 0 of the PhantomUDP rewrite — they were never wired into the session data plane (PhantomSession consumes SessionTransport, not TransportLeg). The production reliable transport is now PhantomUDP (UdpClientTransport / UdpServerTransport, which live outside this module under transport/phantom_udp/ + api/udp_transport.rs), and FakeTLS-style traffic mimicry has returned as the MimicTlsLeg (mimic_tls, below). The plain TCP byte-pipe is TcpSessionTransport (in api/tcp_transport.rs).

Modules§

embeddedembedded
EmbeddedLeg — a SessionTransport over embedded-io-async byte streams, for UART / serial and other embedded byte transports (Phase 3.4).
mimic_tlsmimicry and non-WebAssembly
MimicTlsLeg — TLS-over-TCP active-mimicry transport (queue item #13).