moonbitstack/moonquic/conn does not have a README file
pub(all) struct Config {
version : UInt
idle_timeout : Int64
close_period : Int64
max_datagram : Int64
max_ack_delay : Int64
granularity : Int64
initial_max_data : UInt64
initial_max_stream_data : UInt64
max_frame : UInt64
}pub(all) enum Kind {
OriginalDcid
MaxIdleTimeout
StatelessResetToken
MaxUdpPayload
MaxData
MaxStreamDataBidiLocal
MaxStreamDataBidiRemote
MaxStreamDataUni
MaxStreamsBidi
MaxStreamsUni
AckDelayExponent
MaxAckDelay
DisableActiveMigration
PreferredAddress
ActiveConnectionIdLimit
InitialScid
RetryScid
MaxDatagramFrameSize
Other(UInt64)
} derive(Eq, Debug)pub(all) struct Limits {
idle_timeout : UInt64
udp_payload : UInt64
data : UInt64
stream_data_bidi_local : UInt64
stream_data_bidi_remote : UInt64
stream_data_uni : UInt64
streams_bidi : UInt64
streams_uni : UInt64
ack_delay_exponent : UInt64
max_ack_delay : UInt64
active_connection_ids : UInt64
migration : Bool
datagram_frame : UInt64
} derive(Eq, Debug)fn Limits::new(idle_timeout? : UInt64, udp_payload? : UInt64, data? : UInt64, stream_data_bidi_local? : UInt64, stream_data_bidi_remote? : UInt64, stream_data_uni? : UInt64, streams_bidi? : UInt64, streams_uni? : UInt64, ack_delay_exponent? : UInt64, max_ack_delay? : UInt64, active_connection_ids? : UInt64, migration? : Bool, datagram_frame? : UInt64) -> Limitspub struct Session[A] {
peer : A
cid : Bytes
peer_cid : Bytes
core : Server
sender : Sender
cfg : Config
out : Array[Bytes]
received : Array[(Level, Frame)]
rx : Int64
tx : Int64
packets : Int
validated : Bool
last_rx : Int64
idle_timeout : Int64
phase : Phase
close_at : Int64
close_frame : Frame?
close_level : Level
hs_rx : Keys?
hs_rx_secret : Bytes
hs_tx : Keys?
app_rx : Keys?
app_tx : Keys?
}let amplification : Int64fn idle_timeout(ours : Int64, theirs : Int64) -> Int64let min_datagram : IntInstall
Download zipmoonquic — the QUIC transport for MoonBit (RFC 9000/9001/9002): packets, frames, loss recovery, congestion control, streams and flow control, bytes in and events out. No sockets; the handshake is moontls' and HTTP/3 is moonhttp's.
Dependencies