Class SsdpCommunicationsServer
Provides the platform independent logic for publishing device existence and responding to search requests.
Inherited Members
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public sealed class SsdpCommunicationsServer : DisposableManagedObjectBase, ISsdpCommunicationsServer, IDisposable
Constructors
| Name | Description |
|---|---|
| SsdpCommunicationsServer(ISocketFactory) | Minimum constructor. |
| SsdpCommunicationsServer(ISocketFactory, Int32) | Partial constructor. |
| SsdpCommunicationsServer(ISocketFactory, Int32, Int32) | Full constructor. |
Properties
| Name | Description |
|---|---|
| DeviceNetworkType | What type of sockets will be created: ipv6 or ipv4 |
| IsShared | Gets or sets a boolean value indicating whether or not this instance is shared amongst multiple SsdpDeviceLocatorBase and/or ISsdpDevicePublisher instances. |
| UdpSendCount | The number of times the Udp message is sent. Any value less than 2 will result in one message being sent. SSDP spec recommends sending messages multiple times (not more than 3) to account for possible packet loss over UDP. |
| UdpSendDelay | The delay between repeating messages (as specified in UdpSendCount). |
Methods
| Name | Description |
|---|---|
| BeginListeningForBroadcasts() | Causes the server to begin listening for multicast messages, being SSDP search requests and notifications. |
| Dispose(Boolean) | Stops listening for requests, disposes this instance and all internal resources. |
| SendMessage(Byte[], UdpEndPoint) | Sends a message to a particular address (uni or multicast) and port. |
| StopListeningForBroadcasts() | Causes the server to stop listening for multicast messages, being SSDP search requests and notifications. |
| StopListeningForResponses() | Stops listening for search responses on the local, unicast socket. |
Events
| Name | Description |
|---|---|
| RequestReceived | Raised when a HTTPU request message is received by a socket (unicast or multicast). |
| ResponseReceived | Raised when an HTTPU response message is received by a socket (unicast or multicast). |