masque_client_session (masque v0.7.0)

View Source

Client-side MASQUE CONNECT-UDP session.

One gen_statem per tunnel. Owns the quic_h3 connection, sends the Extended CONNECT request and drives it to 2xx, then holds the request stream open for subsequent datagrams / capsules.

States:

  • connecting - waiting for the CONNECT-UDP response.
  • open - tunnel is live; datagram plumbing lands in Step 5.
  • closing - graceful shutdown in progress.

Summary

Functions

callback_mode()

closing(Event, Msg, Data)

code_change(OldVsn, State, Data, Extra)

connecting(_, Msg, 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)