libp2p/dialer

    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

Dialer = ref object of Dial
  localPeerId*: PeerId
  ms: MultistreamSelect
  connManager: ConnManager
  dialLock: Table[PeerId, AsyncLock]
  transports: seq[Transport]
  nameResolver: NameResolver
  Source   Edit
DialFailedError = object of LPError
  Source   Edit

Procs

proc new(T: type Dialer; localPeerId: PeerId; connManager: ConnManager;
         transports: seq[Transport]; ms: MultistreamSelect;
         nameResolver: NameResolver = nil): Dialer
  Source   Edit

Methods

method connect(self: Dialer; peerId: PeerId; addrs: seq[MultiAddress];
               forceDial = false): Future[void] {.stackTrace: false, ...gcsafe,
    raises: [], tags: [RootEffect].}
  Source   Edit
method dial(self: Dialer; peerId: PeerId; addrs: seq[MultiAddress];
            protos: seq[string]; forceDial = false): Future[Connection] {.
    stackTrace: false, ...gcsafe, raises: [], tags: [RootEffect].}
  Source   Edit
method dial(self: Dialer; peerId: PeerId; protos: seq[string]): Future[
    Connection] {.stackTrace: false, ...gcsafe, raises: [], tags: [RootEffect].}
  Source   Edit