dht-flood/dist/index.d.ts

23 lines
736 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-15 20:48:26 +00:00
constructor({ lruSize, ttl, messageNumber, id, swarm, }?: {
2022-11-15 18:48:21 +00:00
lruSize?: number | undefined;
ttl?: number | undefined;
messageNumber?: number | undefined;
id?: Buffer | undefined;
swarm?: null | undefined;
});
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