source: node_modules/socks/typings/common/helpers.d.ts@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 829 bytes
Line 
1/// <reference types="node" />
2import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient';
3/**
4 * Validates the provided SocksClientOptions
5 * @param options { SocksClientOptions }
6 * @param acceptedCommands { string[] } A list of accepted SocksProxy commands.
7 */
8declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void;
9/**
10 * Validates the SocksClientChainOptions
11 * @param options { SocksClientChainOptions }
12 */
13declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void;
14export { validateSocksClientOptions, validateSocksClientChainOptions };
15export declare function ipv4ToInt32(ip: string): number;
16export declare function int32ToIpv4(int32: number): string;
17export declare function ipToBuffer(ip: string): Buffer;
Note: See TracBrowser for help on using the repository browser.