libp2p/muxers/muxer

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: [], forbids: [].}
Source   Edit  

Methods

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

Templates

template formatItIMPL(it: Muxer): auto
Source   Edit