mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
16 lines
411 B
C#
16 lines
411 B
C#
using System;
|
|
|
|
namespace MediaBrowser.Model.Net
|
|
{
|
|
public interface ISocket : IDisposable
|
|
{
|
|
IpEndPointInfo LocalEndPoint { get; }
|
|
IpEndPointInfo RemoteEndPoint { get; }
|
|
void Close();
|
|
void Shutdown(bool both);
|
|
void Listen(int backlog);
|
|
void Bind(IpEndPointInfo endpoint);
|
|
|
|
void StartAccept(Action<ISocket> onAccept, Func<bool> isClosed);
|
|
}
|
|
}
|