diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-11-30 17:40:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-30 17:40:06 +0100 |
| commit | cc276838b4edbb67356b805952262c38e9c9cd19 (patch) | |
| tree | 8cb27ed0ba34fdd2d941f43c09ccc2be70c10abb /RSSDP/ISsdpCommunicationsServer.cs | |
| parent | cf80ea25413b75bbeddaef136fbeee33aa882a60 (diff) | |
| parent | e46e3be667c76ff9a242d7499aff83d2d10881ed (diff) | |
Merge pull request #10558 from barronpm/dlna-plugin2
Move DLNA to Plugin (Part 2)
Diffstat (limited to 'RSSDP/ISsdpCommunicationsServer.cs')
| -rw-r--r-- | RSSDP/ISsdpCommunicationsServer.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/RSSDP/ISsdpCommunicationsServer.cs b/RSSDP/ISsdpCommunicationsServer.cs deleted file mode 100644 index 95b0a1c70..000000000 --- a/RSSDP/ISsdpCommunicationsServer.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Net; -using System.Threading; -using System.Threading.Tasks; - -namespace Rssdp.Infrastructure -{ - /// <summary> - /// Interface for a component that manages network communication (sending and receiving HTTPU messages) for the SSDP protocol. - /// </summary> - public interface ISsdpCommunicationsServer : IDisposable - { - /// <summary> - /// Raised when a HTTPU request message is received by a socket (unicast or multicast). - /// </summary> - event EventHandler<RequestReceivedEventArgs> RequestReceived; - - /// <summary> - /// Raised when an HTTPU response message is received by a socket (unicast or multicast). - /// </summary> - event EventHandler<ResponseReceivedEventArgs> ResponseReceived; - - /// <summary> - /// Causes the server to begin listening for multicast messages, being SSDP search requests and notifications. - /// </summary> - void BeginListeningForMulticast(); - - /// <summary> - /// Causes the server to stop listening for multicast messages, being SSDP search requests and notifications. - /// </summary> - void StopListeningForMulticast(); - - /// <summary> - /// Sends a message to a particular address (uni or multicast) and port. - /// </summary> - Task SendMessage(byte[] messageData, IPEndPoint destination, IPAddress fromLocalIPAddress, CancellationToken cancellationToken); - - /// <summary> - /// Sends a message to the SSDP multicast address and port. - /// </summary> - Task SendMulticastMessage(string message, IPAddress fromLocalIPAddress, CancellationToken cancellationToken); - Task SendMulticastMessage(string message, int sendCount, IPAddress fromLocalIPAddress, CancellationToken cancellationToken); - - /// <summary> - /// Gets or sets a boolean value indicating whether or not this instance is shared amongst multiple <see cref="SsdpDeviceLocator"/> and/or <see cref="ISsdpDevicePublisher"/> instances. - /// </summary> - /// <remarks> - /// <para>If true, disposing an instance of a <see cref="SsdpDeviceLocator"/>or a <see cref="ISsdpDevicePublisher"/> will not dispose this comms server instance. The calling code is responsible for managing the lifetime of the server.</para> - /// </remarks> - bool IsShared { get; set; } - } -} |
