diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-07-27 17:50:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-27 17:50:17 -0700 |
| commit | 85b277b872757d464c701e11350b47a07d98bf82 (patch) | |
| tree | 2a6166e65c9c6be7006e97f7e2129cce837d5b30 /MediaBrowser.Model/Net/ISocket.cs | |
| parent | 80145cd5a3503164b3d42fcf44346edf570b711c (diff) | |
| parent | 8270d0cc91783c0c8c052b43af0d633edb8b6b04 (diff) | |
Merge pull request #1524 from Bond-009/ipaddress
Remove IpAddressInfo and IpEndPointInfo classes
Diffstat (limited to 'MediaBrowser.Model/Net/ISocket.cs')
| -rw-r--r-- | MediaBrowser.Model/Net/ISocket.cs | 5 |
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); } } |
