libp2p/muxers/mplex/mplex

    Dark Mode
Search:
Group by:
  Source   Edit

Types

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

Consts

MplexCodec = "/mplex/6.7.0"
  Source   Edit

Procs

proc new(M: type Mplex; conn: Connection;
         inTimeout: Duration = DefaultChanTimeout;
         outTimeout: Duration = DefaultChanTimeout;
         maxChannCount: int = MaxChannelCount): Mplex {....raises: [].}
  Source   Edit
func shortLog(m: Mplex): auto {....raises: [], tags: [].}
  Source   Edit

Methods

method close(m: Mplex): InternalRaisesFuture[void, void] {.stackTrace: false,
    ...raises: [], gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method getStreams(m: Mplex): seq[Connection] {....raises: [], tags: [].}
  Source   Edit
method newStream(m: Mplex; name: string = ""; lazy: bool = false): InternalRaisesFuture[
    Connection, (CancelledError, LPStreamError, MuxerError)] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: Mplex): auto
  Source   Edit