Types
Transport = ref object of RootObj addrs*: seq[MultiAddress] running*: bool upgrader*: Upgrade networkReachability*: NetworkReachability
- Source Edit
TransportClosedError = object of TransportError
- Source Edit
TransportError = object of LPError
- Source Edit
TransportInvalidAddrError = object of TransportError
- Source Edit
Procs
proc dial(self: Transport; address: MultiAddress; peerId: Opt[PeerId] = Opt.none(PeerId)): Future[Connection] {....gcsafe, raises: [], tags: [].}
- Source Edit
proc newTransportClosedError(parent: ref Exception = nil): ref TransportError {. ...raises: [], tags: [].}
- Source Edit
Methods
method accept(self: Transport): Future[Connection] {.base, ...gcsafe, raises: [], tags: [].}
- accept incoming connections Source Edit
method dial(self: Transport; hostname: string; address: MultiAddress; peerId: Opt[PeerId] = Opt.none(PeerId)): Future[Connection] {.base, ...gcsafe, raises: [], tags: [].}
- dial a peer Source Edit
method handles(self: Transport; address: MultiAddress): bool {.base, ...gcsafe, raises: [], tags: [].}
- check if transport supports the multiaddress Source Edit
method start(self: Transport; addrs: seq[MultiAddress]): Future[void] {.base, stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [], tags: [RootEffect].}
- start the transport Source Edit