1 |
|
2 |
|
3 |
|
4 | import net from 'net';
|
5 | import dns from 'dns';
|
6 | type LookupFunction = (hostname: string, options: dns.LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void) => void;
|
7 | export declare function connectInParallel(options: {
|
8 | host: string;
|
9 | port: number;
|
10 | localAddress?: string | undefined;
|
11 | }, lookup: LookupFunction, signal: AbortSignal): Promise<net.Socket>;
|
12 | export declare function connectInSequence(options: {
|
13 | host: string;
|
14 | port: number;
|
15 | localAddress?: string | undefined;
|
16 | }, lookup: LookupFunction, signal: AbortSignal): Promise<net.Socket>;
|
17 |
|
18 |
|
19 |
|
20 | export declare function lookupAllAddresses(host: string, lookup: LookupFunction, signal: AbortSignal): Promise<dns.LookupAddress[]>;
|
21 | export {};
|