You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
411 B
17 lines
411 B
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);
|
|
}
|
|
}
|