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

This class is used for listening unicast message.
Show file Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
StartListening ( ) : void

Start the listener of unicast

StopListening ( ) : void

Stop the listener of unicast

UnicastListener ( UdpClient listener ) : System.Net

Initializes a new instance of the UnicastListener class.

Private Methods

Method Description
ReceiveLoop ( object obj ) : void

Receive unicast message.

Method Details

StartListening() public method

Start the listener of unicast
public StartListening ( ) : void
return void

StopListening() public method

Stop the listener of unicast
public StopListening ( ) : void
return void

UnicastListener() public method

Initializes a new instance of the UnicastListener class.
public UnicastListener ( UdpClient listener ) : System.Net
listener System.Net.Sockets.UdpClient The listener of unicast
return System.Net