Nim-LibP2P Copyright (c) 2019 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
Types
InvalidChannelIdError = object of MuxerError
- Source Edit
Mplex = ref object of Muxer channels: array[bool, Table[uint64, LPChannel]] currentId: uint64 inChannTimeout: Duration outChannTimeout: Duration isClosed: bool oid*: Oid maxChannCount: int
- Source Edit
TooManyChannels = object of MuxerError
- Source Edit
Consts
MplexCodec = "/mplex/6.7.0"
- Source Edit
Procs
proc new(M: type Mplex; conn: Connection; inTimeout, outTimeout: Duration = DefaultChanTimeout; maxChannCount: int = MaxChannelCount): Mplex {....raises: [Defect].}
- Source Edit
Templates
template formatItIMPL(it: Mplex): auto
- Source Edit