Nim-LibP2P Copyright (c) 2021 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
Types
NameResolver = ref object of RootObj
- Source Edit
Procs
proc getHostname(ma: MultiAddress): string {....raises: [Defect], tags: [RootEffect].}
- Source Edit
proc resolveMAddress(self: NameResolver; address: MultiAddress): Future[ seq[MultiAddress]] {.stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit
Methods
method resolveIp(self: NameResolver; address: string; port: Port; domain: Domain = Domain.AF_UNSPEC): Future[ seq[TransportAddress]] {.base, stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit
method resolveTxt(self: NameResolver; address: string): Future[seq[string]] {. base, stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit