Method SendMessage
SendMessage(Byte[], UdpEndPoint)
Sends a message to a particular address (uni or multicast) and port.
Declaration
public void SendMessage(byte[] messageData, UdpEndPoint destination)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | messageData | A byte array containing the data to send. |
UdpEndPoint | destination | A UdpEndPoint representing the destination address for the data. Can be either a multicast or unicast destination. |
Implements
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if the |
System.ObjectDisposedException | Thrown if the IsDisposed property is true (because Dispose() has been called previously). |