UNPKG

android-bot

Version:

Android-bot is built on the AutoBot JavaScript library and provides features such as wireless screen casting and real-time control within a local network, key simulation, screen recording, screenshot capture, layout analysis, file management, application

21 lines (20 loc) 645 B
/// <reference types="node" /> import dgram from "dgram"; interface IClient { address: string; port: number; } export declare class UdpScan { static server: dgram.Socket; static port: number; static clients: IClient[]; static mOnClientDiscoverLinstener: (client: IClient) => void; private constructor(); private static createScanServer; private static waitForInitServer; private static sendBroadcast; static scanServer(scanCount?: number): Promise<IClient[]>; static scanServerAsync(listener: (client: IClient) => void, scanCount?: number): Promise<void>; static release(): void; } export {};