aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/RequestReceivedEventArgs.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2019-07-27 17:50:17 -0700
committerGitHub <noreply@github.com>2019-07-27 17:50:17 -0700
commit85b277b872757d464c701e11350b47a07d98bf82 (patch)
tree2a6166e65c9c6be7006e97f7e2129cce837d5b30 /RSSDP/RequestReceivedEventArgs.cs
parent80145cd5a3503164b3d42fcf44346edf570b711c (diff)
parent8270d0cc91783c0c8c052b43af0d633edb8b6b04 (diff)
Merge pull request #1524 from Bond-009/ipaddress
Remove IpAddressInfo and IpEndPointInfo classes
Diffstat (limited to 'RSSDP/RequestReceivedEventArgs.cs')
-rw-r--r--RSSDP/RequestReceivedEventArgs.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/RSSDP/RequestReceivedEventArgs.cs b/RSSDP/RequestReceivedEventArgs.cs
index fd3cd9e3a..b753950f0 100644
--- a/RSSDP/RequestReceivedEventArgs.cs
+++ b/RSSDP/RequestReceivedEventArgs.cs
@@ -1,10 +1,6 @@
using System;
-using System.Collections.Generic;
using System.Net;
using System.Net.Http;
-using System.Text;
-using System.Threading.Tasks;
-using MediaBrowser.Model.Net;
namespace Rssdp.Infrastructure
{
@@ -16,18 +12,18 @@ namespace Rssdp.Infrastructure
#region Fields
private readonly HttpRequestMessage _Message;
- private readonly IpEndPointInfo _ReceivedFrom;
+ private readonly IPEndPoint _ReceivedFrom;
#endregion
- public IpAddressInfo LocalIpAddress { get; private set; }
+ public IPAddress LocalIpAddress { get; private set; }
#region Constructors
/// <summary>
/// Full constructor.
/// </summary>
- public RequestReceivedEventArgs(HttpRequestMessage message, IpEndPointInfo receivedFrom, IpAddressInfo localIpAddress)
+ public RequestReceivedEventArgs(HttpRequestMessage message, IPEndPoint receivedFrom, IPAddress localIpAddress)
{
_Message = message;
_ReceivedFrom = receivedFrom;
@@ -49,7 +45,7 @@ namespace Rssdp.Infrastructure
/// <summary>
/// The <see cref="UdpEndPoint"/> the request came from.
/// </summary>
- public IpEndPointInfo ReceivedFrom
+ public IPEndPoint ReceivedFrom
{
get { return _ReceivedFrom; }
}