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

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

Public Methods

Method Description
MulticastListener ( string multiAddress, int port ) : System.Net

Initializes a new instance of the MulticastListener class

StartListening ( ) : void

Start the listener of multicast message

StopListening ( ) : void

Stop the listener of multicast message

Private Methods

Method Description
ReceiveLoop ( object obj ) : void

Receive multicast message

Method Details

MulticastListener() public method

Initializes a new instance of the MulticastListener class
public MulticastListener ( string multiAddress, int port ) : System.Net
multiAddress string Multicast address
port int The listening port
return System.Net

StartListening() public method

Start the listener of multicast message
public StartListening ( ) : void
return void

StopListening() public method

Stop the listener of multicast message
public StopListening ( ) : void
return void