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

Send message over UDP.
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Send ( object obj ) : void

Send message to destination

Method Details

SendBytes() public méthode

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
Résultat void

Start() public méthode

Start the thread of send message
public Start ( ) : void
Résultat void

Stop() public méthode

Stop the thread of send message
public Stop ( ) : void
Résultat void

UdpSender() public méthode

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