dht-flood/dist/index.d.ts

25 lines
807 B
TypeScript
Raw Normal View History

2022-11-15 18:48:21 +00:00
/// <reference types="node" />
/// <reference types="node" />
import EventEmitter from "events";
2022-11-16 06:33:52 +00:00
export declare const FLOOD_SYMBOL: unique symbol;
2022-11-15 18:48:21 +00:00
export default class DHTFlood extends EventEmitter {
private id;
private ttl;
private messageNumber;
private lru;
private swarm;
2022-11-16 07:41:56 +00:00
private protocol;
constructor({ lruSize, ttl, messageNumber, id, swarm, protocol, }?: {
2022-11-15 18:48:21 +00:00
lruSize?: number | undefined;
ttl?: number | undefined;
messageNumber?: number | undefined;
id?: Buffer | undefined;
swarm?: null | undefined;
2022-11-16 07:41:56 +00:00
protocol?: string | undefined;
2022-11-15 18:48:21 +00:00
});
private handleMessage;
private setupPeer;
broadcast(data: any, ttl?: number): void;
2022-11-15 20:53:25 +00:00
send(peer: any, data: any, ttl?: number): void;
2022-11-15 18:48:21 +00:00
}
//# sourceMappingURL=index.d.ts.map