@diva.exchange/i2p-sam
Version:
I2P SAM: peer-to-peer communication between applications over I2P
49 lines (48 loc) • 907 B
TypeScript
export declare const MIN_UDP_MESSAGE_LENGTH: number;
export declare const MAX_UDP_MESSAGE_LENGTH: number;
type tSession = {
id?: string;
options?: string;
};
type tStream = {
destination: string;
};
type tForward = {
host: string;
port: number;
silent?: boolean;
};
type tListen = {
address: string;
port: number;
hostForward?: string;
portForward?: number;
};
type tSam = {
host: string;
portTCP: number;
portUDP?: number;
versionMin?: string;
versionMax?: string;
publicKey?: string;
privateKey?: string;
timeout?: number;
};
export type Configuration = {
session?: tSession;
stream?: tStream;
forward?: tForward;
listen?: tListen;
sam?: tSam;
};
export declare class Config {
session: tSession;
forward: tForward;
stream: tStream;
listen: tListen;
sam: tSam;
constructor(c: Configuration);
private static b;
private static port;
}
export {};