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

Send soap message over UDP.
Inheritance: ITransport
Mostra file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Dispose ( ) : void

Dispose the class resource

SendBytes ( byte bytes, string address, int port ) : void

Send the soap message over UDP

SoapOverUdp ( ) : System.Net

Initializes a new instance of the SoapOverUdp class.

SoapOverUdp ( string multicastAddress, int multicastPort ) : System.Net

Initializes a new instance of the SoapOverUdp class.

StartListening ( ) : void

Start the unicast and multicast listener

StopListening ( ) : void

Stop the unicast and multicast listener

Private Methods

Method Description
GetUdpClient ( ) : UdpClient

Get a instance of the UDP client

MulticastListener_multicastMsgArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the multicast message

UnicastListenerMessageArrived ( IPEndPoint remoteAddr, byte data ) : void

Receive the unicast message

Method Details

Dispose() public method

Dispose the class resource
public Dispose ( ) : void
return void

SendBytes() public method

Send the soap message over UDP
public SendBytes ( byte bytes, string address, int port ) : void
bytes byte The message data
address string The destination address
port int The destination port
return void

SoapOverUdp() public method

Initializes a new instance of the SoapOverUdp class.
public SoapOverUdp ( ) : System.Net
return System.Net

SoapOverUdp() public method

Initializes a new instance of the SoapOverUdp class.
public SoapOverUdp ( string multicastAddress, int multicastPort ) : System.Net
multicastAddress string The multicast address
multicastPort int The multicast port
return System.Net

StartListening() public method

Start the unicast and multicast listener
public StartListening ( ) : void
return void

StopListening() public method

Stop the unicast and multicast listener
public StopListening ( ) : void
return void