masque_h1_client_session (masque v0.7.0)

View Source

Client-side MASQUE CONNECT-UDP session over HTTP/1.1.

Runs the RFC 9298 handshake as an HTTP/1.1 Upgrade (Upgrade: connect-udp) and, after the 101 response, drives RFC 9297 capsules directly on the raw TLS socket. DATAGRAM capsules carry the UDP payload; extension capsules are opaque.

The on-wire shape of a DATAGRAM capsule is identical to the h2 and h3 paths, so masque_datagram and masque_capsule are reused unchanged; only the transport plumbing differs.

Summary

Functions

callback_mode()

closing(Event, Msg, Data)

code_change(OldVsn, State, Data, Extra)

connecting(_, Other, Data)

info(Pid)

init(_)

open(_, Msg, Data)

recv(Pid, Timeout)

send(Pid, Data)

send(Pid, ContextId, Data)

send_capsule(Pid, Type, Value)

set_mode(Pid, Mode)

start(Target, Opts, Owner)

start_link(Target, Opts, Owner)

stop(Pid)

terminate(Reason, State, Data)