Interface IUdpSocket
Provides a common interface across platforms for UDP sockets used by this SSDP implementation.
Inherited Members
System.IDisposable.Dispose()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public interface IUdpSocket : IDisposable
Methods
ReceiveAsync()
Waits for and returns the next UDP message sent to this socket (uni or multicast).
Declaration
Task<ReceivedUdpData> ReceiveAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ReceivedUdpData> |
SendTo(Byte[], UdpEndPoint)
Sends a UDP message to a particular end point (uni or multicast).
Declaration
void SendTo(byte[] messageData, UdpEndPoint endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | messageData | The data to send. |
| UdpEndPoint | endPoint | The UdpEndPoint providing the address and port to send to. |