moonbit-community/rtc/transport does not have a README file
pub(all) struct InboundDatagram {
now : Instant
context : TransportContext
payload : Bytes
} derive(Eq, Debug)pub(all) enum IoAction {
SendDatagram(OutboundDatagram)
ConnectTcp(connection~ : ConnectionId, local_address~ : SocketAddress?, peer~ : SocketAddress)
ConnectTls(connection~ : ConnectionId, local_address~ : SocketAddress?, peer~ : SocketAddress, server_name~ : String?)
ListenTcp(listener~ : ListenerId, local_address~ : SocketAddress)
WriteStream(connection~ : ConnectionId, bytes~ : Bytes)
CloseStream(ConnectionId)
CloseListener(ListenerId)
} derive(Eq, Debug)pub(all) enum IoEvent {
DatagramReceived(InboundDatagram)
StreamConnected(now~ : Instant, connection~ : ConnectionId, context~ : TransportContext)
StreamAccepted(now~ : Instant, listener~ : ListenerId, connection~ : ConnectionId, context~ : TransportContext)
StreamBytes(now~ : Instant, connection~ : ConnectionId, bytes~ : Bytes)
StreamWritable(now~ : Instant, connection~ : ConnectionId)
StreamEof(now~ : Instant, connection~ : ConnectionId)
StreamError(now~ : Instant, connection~ : ConnectionId, reason~ : String)
StreamClosed(now~ : Instant, connection~ : ConnectionId)
} derive(Eq, Debug)pub(all) struct TransportContext {
local_address : SocketAddress
peer : SocketAddress
ecn : EcnCodepoint?
protocol : TransportProtocol
} derive(Eq, Debug)Install
Download zipExperimental Sans-I/O WebRTC stack for MoonBit
Dependencies