blob: 371fbc5675c0583e956abb093e7fbff3d8704e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
}
}
|