UNPKG

@juit/lib-ping

Version:

ICMPv4/ICMPv6 Ping library for NodeJS

23 lines (22 loc) 792 B
export declare const ERR_WRONG_LENGTH = -1n; export declare const ERR_WRONG_CORRELATION = -2n; export declare const ERR_WRONG_ICMP_TYPE = -3n; export declare const ERR_WRONG_ICMP_CODE = -4n; export declare const ERR_WRONG_SEQUENCE = -5n; export declare const ERR_SEQUENCE_TOO_BIG = -6n; export declare const ERR_SEQUENCE_TOO_SMALL = -7n; export declare const ERR_LATENCY_NEGATIVE = -8n; export declare function getWarning(num: bigint): { code: string; message: string; }; export declare class ProtocolHandler { private readonly __packet; private readonly __type; private __seq_out; private __seq_in; constructor(v6: boolean); outgoing(): Buffer; incoming(buffer: Buffer, now?: bigint): bigint; } export declare function rfc1071crc(buffer: Buffer): number;