CoolrfulDARkness/moonsctp/association does not have a README file
pub struct Association {
// private fields
}fn Association::handle_packet(self : Association, raw : BytesView, now_ms : UInt64) -> Array[Event] raise AssocErrorfn Association::process_stateless_init(cfg : Config, raw_pkt : BytesView, now_ms : UInt64) -> Bytes raise AssocErrorfn Association::send(self : Association, payload : Bytes, opts : SendOptions, now_ms : UInt64) -> Unit raise AssocErrorfn Association::send_heartbeat(self : Association, info : Bytes, _now_ms : UInt64) -> Unit raise AssocErrorpub(all) struct Config {
local_port : UInt
remote_port : UInt
local_vtag : UInt
initial_tsn : UInt
num_outbound_streams : UInt
num_inbound_streams : UInt
a_rwnd : UInt
max_payload_size : Int
cookie_secret : Bytes
cookie_lifetime_ms : UInt64
rto_initial_ms : UInt64
rto_max_ms : UInt64
max_message_size : Int
} derive(Eq, Debug)pub(all) enum Event {
Connected
Message(DeliveredMessage)
HeartbeatAcked(Bytes)
PeerShutdown
Closed
Aborted(String)
} derive(Eq, Debug)pub(all) struct SendOptions {
stream_id : UInt
ppid : UInt
unordered : Bool
reliability : ReliabilityPolicy
} derive(Eq, Debug)fn SendOptions::unordered(stream_id : UInt, ppid? : UInt, reliability? : ReliabilityPolicy) -> SendOptionslet DEFAULT_COOKIE_LIFETIME_MS : UInt64let DEFAULT_MAX_MESSAGE_SIZE : Intlet DEFAULT_MAX_PAYLOAD_SIZE : Intlet DEFAULT_RTO_INITIAL_MS : UInt64let DEFAULT_RTO_MAX_MS : UInt64let DEFAULT_RTO_MIN_MS : UInt64Install
Download zipPure MoonBit, zero-FFI, Sans-I/O IETF RFC 9260 SCTP and RFC 3758 PR-SCTP multi-stream reliable transport protocol stack with Castagnoli CRC-32C, stateless HMAC-SHA256 cookie handshake, and deterministic chaos simulator.