C# Class Microsoft.Protocols.TestTools.StackSdk.WsDiscovery.Transport.UdpSender

Send message over UDP.
Datei anzeigen Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
Send ( object obj ) : void

Send message to destination

Method Details

SendBytes() public method

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
return void

Start() public method

Start the thread of send message
public Start ( ) : void
return void

Stop() public method

Stop the thread of send message
public Stop ( ) : void
return void

UdpSender() public method

Initializes a new instance of the UdpSender class.
public UdpSender ( UdpClient sender ) : System.Net.Sockets
sender System.Net.Sockets.UdpClient The UDP sender
return System.Net.Sockets