Interface DatagramEndpoint

interface DatagramEndpoint {
    localAddress: Address;
    remoteAddress: Address;
    close(): void;
    recv(buf: Uint8Array): Promise<number>;
    send(buf: Uint8Array, addr?: Address): Promise<DatagramData>;
}

Properties

localAddress: Address
remoteAddress: Address

Methods

  • Returns void

  • Parameters

    • buf: Uint8Array

    Returns Promise<number>