diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-07 15:02:34 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-07 15:02:34 -0500 |
| commit | 0130209cdce07dc042b075c6cf972a7eb1339861 (patch) | |
| tree | aede8b599fe887f206fbe703e023ed3677ea5f4f /MediaBrowser.Model/Net/ISocket.cs | |
| parent | 20c249979759a836f63a886a871db69ceaeb757e (diff) | |
improve ipv6 error handling
Diffstat (limited to 'MediaBrowser.Model/Net/ISocket.cs')
| -rw-r--r-- | MediaBrowser.Model/Net/ISocket.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Net/ISocket.cs b/MediaBrowser.Model/Net/ISocket.cs index 371fbc567..aed35bce8 100644 --- a/MediaBrowser.Model/Net/ISocket.cs +++ b/MediaBrowser.Model/Net/ISocket.cs @@ -4,6 +4,7 @@ namespace MediaBrowser.Model.Net { public interface ISocket : IDisposable { + bool DualMode { get; } IpEndPointInfo LocalEndPoint { get; } IpEndPointInfo RemoteEndPoint { get; } void Close(); @@ -13,4 +14,15 @@ namespace MediaBrowser.Model.Net void StartAccept(Action<ISocket> onAccept, Func<bool> isClosed); } + + public class SocketCreateException : Exception + { + public SocketCreateException(string errorCode, Exception originalException) + : base(errorCode, originalException) + { + ErrorCode = errorCode; + } + + public string ErrorCode { get; private set; } + } } |
