C# Класс Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.Transport.UdpSender

Send message over UDP.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SendBytes ( byte data, string address, int port ) : void

Send message to destination

Start ( ) : void

Start the thread of send message

Stop ( ) : void

Stop the thread of send message

UdpSender ( UdpClient sender ) : System.Net.Sockets

Initializes a new instance of the UdpSender class.

Приватные методы

Метод Описание
Send ( object obj ) : void

Send message to destination

Описание методов

SendBytes() публичный Метод

Send message to destination
public SendBytes ( byte data, string address, int port ) : void
data byte Message data
address string Destination address
port int Destination port
Результат void

Start() публичный Метод

Start the thread of send message
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop the thread of send message
public Stop ( ) : void
Результат void

UdpSender() публичный Метод

Initializes a new instance of the UdpSender class.
public UdpSender ( UdpClient sender ) : System.Net.Sockets
sender System.Net.Sockets.UdpClient The UDP sender
Результат System.Net.Sockets