libp2p/dial

Search:
Group by:
Source   Edit  

Types

Dial = ref object of RootObj
Source   Edit  

Methods

method addTransport(self: Dial; transport: Transport) {.base, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
method connect(self: Dial; address: MultiAddress; allowUnknownPeerId = false): Future[
    PeerId] {.async, base, ...raises: [], tags: [], forbids: [].}
Connects to a peer and retrieve its PeerId Source   Edit  
method connect(self: Dial; peerId: PeerId; addrs: seq[MultiAddress];
               forceDial = false; reuseConnection = true;
               upgradeDir = Direction.Out) {.async, base, ...raises: [], tags: [],
    forbids: [].}
connect remote peer without negotiating a protocol Source   Edit  
method dial(self: Dial; peerId: PeerId; addrs: seq[MultiAddress];
            protos: seq[string]; forceDial = false): Future[Connection] {.async,
    base, ...raises: [], tags: [], forbids: [].}
create a protocol stream and establish a connection if one doesn't exist already Source   Edit  
method dial(self: Dial; peerId: PeerId; protos: seq[string]): Future[Connection] {.
    async, base, ...raises: [], tags: [], forbids: [].}
create a protocol stream over an existing connection Source   Edit  
method tryDial(self: Dial; peerId: PeerId; addrs: seq[MultiAddress]): Future[
    Opt[MultiAddress]] {.async, base, ...raises: [], tags: [], forbids: [].}
Source   Edit