Virtual Serial Port Tools - Advanced serial port configurations for your custom ports usage scenario
Download Virtual Serial Port Tools Hide this button

IUdpSocket Interface

This interface is implemented by an UDP socket. Call the INetworkManager.createUdpSocket method to create an UDP socket.

WARNING

This functionality is not available on Windows 7. Attempt to create a UDP socket with a call to INetworkManager.createUdpSocket method will fail.

Declaration

interface IUdpSocket extends ${Net.ISocket} {

    // Methods
    ${bind}(host: string, port: number): Promise<void>;
}
// This interface is not available in managed environment
// This interface is not available in native environment

IUdpSocket Methods

bind

bind(host: string, port: number): Promise<void>;
// This method is not available in managed environment
// This method is not available in native environment
host
Host name.
port
UDP port number.

Bind an UDP socket.