Module ip

Consts

RESOLVER_STATUS_NONE = 0'i64
RESOLVER_STATUS_WAITING = 1'i64
RESOLVER_STATUS_DONE = 2'i64
RESOLVER_STATUS_ERROR = 3'i64
RESOLVER_MAX_QUERIES = 32'i64
RESOLVER_INVALID_ID = -1
TYPE_NONE = 0'i64
TYPE_IPV4 = 1'i64
TYPE_IPV6 = 2'i64
TYPE_ANY = 3'i64

Procs

proc resolveHostname(host: string; ipType: int64 = 3'i64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc resolveHostnameQueueItem(host: string; ipType: int64 = 3'i64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getResolveItemStatus(id: int64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getResolveItemAddress(id: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc eraseResolveItem(id: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getLocalAddresses(): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc clearCache(hostname: string = "") {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}