Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class ChannelWrap
implements ChannelWrapQuery
extends AsyncWrap
import { ChannelWrap } from "https://deno.land/std@0.172.0/node/internal_binding/cares_wrap.ts";

Constructors

new
ChannelWrap(timeout: number, tries: number)

Methods

getHostByAddr(_req: QueryReqWrap, _name: string): number
getServers(): [string, number][]
queryA(req: QueryReqWrap, name: string): number
queryAaaa(req: QueryReqWrap, name: string): number
queryAny(req: QueryReqWrap, name: string): number
queryCaa(req: QueryReqWrap, name: string): number
queryCname(req: QueryReqWrap, name: string): number
queryMx(req: QueryReqWrap, name: string): number
queryNaptr(req: QueryReqWrap, name: string): number
queryNs(req: QueryReqWrap, name: string): number
queryPtr(req: QueryReqWrap, name: string): number
querySoa(req: QueryReqWrap, name: string): number
querySrv(req: QueryReqWrap, name: string): number
queryTxt(req: QueryReqWrap, name: string): number
setLocalAddress(_addr0: string, _addr1?: string)
setServers(servers: string | [number, string, number][]): number