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'i64
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
.}
proc resolveHostnameQueueItem*(host: string; ipType: int64 = 3'i64): int64 {.
gcsafe, locks: 0
.}
proc getResolveItemStatus*(id: int64): int64 {.
gcsafe, locks: 0
.}
proc getResolveItemAddress*(id: int64): string {.
gcsafe, locks: 0
.}
proc eraseResolveItem*(id: int64) {.
gcsafe, locks: 0
.}
proc getLocalAddresses*(): Array {.
gcsafe, locks: 0
.}
proc clearCache*(hostname: string = "") {.
gcsafe, locks: 0
.}