mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-19 20:09:03 -07:00
28 lines
728 B
C#
28 lines
728 B
C#
using System;
|
|
|
|
namespace MediaBrowser.Model.Net
|
|
{
|
|
public interface IAcceptSocket : IDisposable
|
|
{
|
|
bool DualMode { get; }
|
|
IpEndPointInfo LocalEndPoint { get; }
|
|
IpEndPointInfo RemoteEndPoint { get; }
|
|
void Close();
|
|
void Shutdown(bool both);
|
|
void Listen(int backlog);
|
|
void Bind(IpEndPointInfo endpoint);
|
|
void Connect(IpEndPointInfo endPoint);
|
|
}
|
|
|
|
public class SocketCreateException : Exception
|
|
{
|
|
public SocketCreateException(string errorCode, Exception originalException)
|
|
: base(errorCode, originalException)
|
|
{
|
|
ErrorCode = errorCode;
|
|
}
|
|
|
|
public string ErrorCode { get; private set; }
|
|
}
|
|
}
|