Network Sniffer - Software network packet sniffer & protocol analyzer for Windows
Download Device Monitoring Studio Hide this button

IUdpSession Interface

interface IUdpSession extends ${INetworkSession} {

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

IUdpSession Methods

bind

bind(hostName: string, port: number): Promise<void>;
// This method is not available in managed environment
// This method is not available in native environment
hostName
Host name. This may be host domain name, IP address or other name that can be resolved.
port
Port number.

Starts a bind operation on UDP session. Returns a promise that can be awaited.