aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/ISsdpCommunicationsServer.cs
diff options
context:
space:
mode:
authorXu Fasheng <fasheng.xu@gmail.com>2019-02-22 12:06:49 +0800
committerXu Fasheng <fasheng.xu@gmail.com>2019-02-22 20:18:34 +0800
commitcbd0e71c077e6233bcbc751f9a2f1ee742000ba3 (patch)
treee79824216db472de61243098c03012903902603d /RSSDP/ISsdpCommunicationsServer.cs
parent2db1826ed887bb84dc5065ff38ae67fe92cc6c51 (diff)
Send DLNA devices message to only the matched interface
This will be the right way for multiple interfaces, or the client will receive all devices message with different IP addresses and could not detect which one could access. And provide one option DlnaOptions.SendOnlyMatchedHost to fallback to old behaviour if this commit missed something.
Diffstat (limited to 'RSSDP/ISsdpCommunicationsServer.cs')
-rw-r--r--RSSDP/ISsdpCommunicationsServer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/RSSDP/ISsdpCommunicationsServer.cs b/RSSDP/ISsdpCommunicationsServer.cs
index ef75f997f..c99d684a1 100644
--- a/RSSDP/ISsdpCommunicationsServer.cs
+++ b/RSSDP/ISsdpCommunicationsServer.cs
@@ -45,8 +45,8 @@ namespace Rssdp.Infrastructure
/// <summary>
/// Sends a message to the SSDP multicast address and port.
/// </summary>
- Task SendMulticastMessage(string message, CancellationToken cancellationToken);
- Task SendMulticastMessage(string message, int sendCount, CancellationToken cancellationToken);
+ Task SendMulticastMessage(string message, IpAddressInfo fromLocalIpAddress, CancellationToken cancellationToken);
+ Task SendMulticastMessage(string message, int sendCount, IpAddressInfo fromLocalIpAddress, CancellationToken cancellationToken);
#endregion
@@ -63,4 +63,4 @@ namespace Rssdp.Infrastructure
#endregion
}
-} \ No newline at end of file
+}