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

Send soap message over UDP.
Inheritance: ITransport
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites

Méthodes publiques

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

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

Dispose the class resource
public Dispose ( ) : void
Résultat void

SendBytes() public méthode

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

SoapOverUdp() public méthode

Initializes a new instance of the SoapOverUdp class.
public SoapOverUdp ( ) : System.Net
Résultat System.Net

SoapOverUdp() public méthode

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
Résultat System.Net

StartListening() public méthode

Start the unicast and multicast listener
public StartListening ( ) : void
Résultat void

StopListening() public méthode

Stop the unicast and multicast listener
public StopListening ( ) : void
Résultat void