libp2p/muxers/muxer

    Dark Mode
Search:
Group by:
  Source   Edit

Types

Muxer = ref object of RootObj
  streamHandler*: StreamHandler
  handler*: Future[void]
  connection*: Connection
  Source   Edit
MuxerConstructor = proc (conn: Connection): Muxer {....gcsafe, closure, ...raises: [].}
  Source   Edit
MuxerError = object of LPError
  Source   Edit
MuxerHandler = proc (muxer: Muxer): Future[void] {....gcsafe, raises: [].}
  Source   Edit
MuxerProvider = object
  newMuxer*: MuxerConstructor
  codec*: string
  Source   Edit
StreamHandler = proc (conn: Connection): Future[void] {....gcsafe, raises: [].}
  Source   Edit
TooManyChannels = object of MuxerError
  Source   Edit

Consts

DefaultChanTimeout = (value: 300000000000)
  Source   Edit

Procs

proc new(T: typedesc[MuxerProvider]; creator: MuxerConstructor; codec: string): T:type {.
    ...gcsafe, raises: [].}
  Source   Edit
func shortLog(m: Muxer): auto {....raises: [], tags: [].}
  Source   Edit

Methods

method close(m: Muxer): Future[void] {.base, ...gcsafe, stackTrace: false, ...gcsafe,
                                       raises: [], raises: [], raises: [],
                                       tags: [RootEffect].}
  Source   Edit
method getStreams(m: Muxer): seq[Connection] {.base, ...raises: [], tags: [].}
  Source   Edit
method handle(m: Muxer): Future[void] {.base, ...gcsafe, stackTrace: false, ...gcsafe,
                                        raises: [], raises: [], raises: [],
                                        tags: [RootEffect].}
  Source   Edit
method newStream(m: Muxer; name: string = ""; lazy: bool = false): Future[
    Connection] {.base, ...gcsafe, stackTrace: false, ...gcsafe, raises: [],
                  raises: [], raises: [], tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: Muxer): auto
  Source   Edit