libp2p/upgrademngrs/muxedupgrade

    Dark Mode
Search:
Group by:
  Source   Edit

Nim-LibP2P Copyright (c) 2021 Status Research & Development GmbH

Licensed under either of

at your option. This file may not be copied, modified, or distributed except according to those terms.

Types

MuxedUpgrade = ref object of Upgrade
  muxers*: Table[string, MuxerProvider]
  streamHandler*: StreamHandler
  Source   Edit

Procs

proc identify(self: MuxedUpgrade; muxer: Muxer): Future[void] {....gcsafe,
    stackTrace: false, ...gcsafe, raises: [Defect], tags: [RootEffect].}
  Source   Edit
proc mux(self: MuxedUpgrade; conn: Connection): Future[Muxer] {....gcsafe,
    stackTrace: false, ...gcsafe, raises: [Defect], tags: [RootEffect].}
mux outgoing connection   Source   Edit
proc new(T: type MuxedUpgrade; identity: Identify;
         muxers: Table[string, MuxerProvider];
         secureManagers: openArray[Secure] = []; connManager: ConnManager;
         ms: MultistreamSelect): T:type {....raises: [Defect].}
  Source   Edit

Methods

method upgradeIncoming(self: MuxedUpgrade; incomingConn: Connection): Future[
    void] {....gcsafe, stackTrace: false, ...gcsafe, raises: [Defect],
            tags: [RootEffect].}
  Source   Edit
method upgradeOutgoing(self: MuxedUpgrade; conn: Connection): Future[Connection] {.
    ...gcsafe, stackTrace: false, ...gcsafe, raises: [Defect], tags: [RootEffect].}
  Source   Edit