aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net/ISocket.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-07-07 21:03:26 +0200
committerBond_009 <bond.009@outlook.com>2019-07-25 00:15:06 +0200
commitddd1a282ea6398ee26d74321338d0445d0a0c796 (patch)
tree5718f5f39f84941119d0fed350c33299d2adf282 /MediaBrowser.Model/Net/ISocket.cs
parente8028de4d7cf1372dad54a7d871e853ac737d023 (diff)
Remove IpAddressInfo and IpEndPointInfo classes
Diffstat (limited to 'MediaBrowser.Model/Net/ISocket.cs')
-rw-r--r--MediaBrowser.Model/Net/ISocket.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Net/ISocket.cs b/MediaBrowser.Model/Net/ISocket.cs
index 992ccb49b..f80de5524 100644
--- a/MediaBrowser.Model/Net/ISocket.cs
+++ b/MediaBrowser.Model/Net/ISocket.cs
@@ -1,4 +1,5 @@
using System;
+using System.Net;
using System.Threading;
using System.Threading.Tasks;
@@ -9,7 +10,7 @@ namespace MediaBrowser.Model.Net
/// </summary>
public interface ISocket : IDisposable
{
- IpAddressInfo LocalIPAddress { get; }
+ IPAddress LocalIPAddress { get; }
Task<SocketReceiveResult> ReceiveAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
@@ -21,6 +22,6 @@ namespace MediaBrowser.Model.Net
/// <summary>
/// Sends a UDP message to a particular end point (uni or multicast).
/// </summary>
- Task SendToAsync(byte[] buffer, int offset, int bytes, IpEndPointInfo endPoint, CancellationToken cancellationToken);
+ Task SendToAsync(byte[] buffer, int offset, int bytes, IPEndPoint endPoint, CancellationToken cancellationToken);
}
}