From d218dbd2a1f6d70d3714d84bebc2fb00020151c1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 5 Feb 2017 15:44:08 -0500 Subject: add cancellation to socket methods --- RSSDP/ISsdpCommunicationsServer.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'RSSDP/ISsdpCommunicationsServer.cs') diff --git a/RSSDP/ISsdpCommunicationsServer.cs b/RSSDP/ISsdpCommunicationsServer.cs index eea5e0ed67..0e47974e2f 100644 --- a/RSSDP/ISsdpCommunicationsServer.cs +++ b/RSSDP/ISsdpCommunicationsServer.cs @@ -1,4 +1,5 @@ using System; +using System.Threading; using System.Threading.Tasks; using MediaBrowser.Model.Net; @@ -44,15 +45,12 @@ namespace Rssdp.Infrastructure /// /// Sends a message to a particular address (uni or multicast) and port. /// - /// A byte array containing the data to send. - /// A representing the destination address for the data. Can be either a multicast or unicast destination. - /// A The local ip address to send from, or .Any if sending from all available - Task SendMessage(byte[] messageData, IpEndPointInfo destination, IpAddressInfo fromLocalIpAddress); + Task SendMessage(byte[] messageData, IpEndPointInfo destination, IpAddressInfo fromLocalIpAddress, CancellationToken cancellationToken); /// /// Sends a message to the SSDP multicast address and port. /// - Task SendMulticastMessage(string message); + Task SendMulticastMessage(string message, CancellationToken cancellationToken); #endregion -- cgit v1.2.3