libp2p/muxers/muxer

    Dark Mode
Search:
Group by:
  Source   Edit

Types

Muxer = ref object of RootObj
  streamHandler*: StreamHandler
  handler*: Future[void].Raising([])
  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].Raising([]) {....gcsafe,
    raises: [].}
  Source   Edit
MuxerProvider = object
  newMuxer*: MuxerConstructor
  codec*: string
  Source   Edit
StreamHandler = proc (conn: Connection): Future[void].Raising([]) {....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): InternalRaisesFuture[void, void] {.base,
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit
method getStreams(m: Muxer): seq[Connection] {.base, ...raises: [], tags: [].}
  Source   Edit
method handle(m: Muxer): InternalRaisesFuture[void, void] {.base,
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit
method newStream(m: Muxer; name: string = ""; lazy: bool = false): InternalRaisesFuture[
    Connection, (CancelledError, LPStreamError, MuxerError)] {.base,
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [], tags: [].}
  Source   Edit

Templates

template formatItIMPL(it: Muxer): auto
  Source   Edit