ISocket.cs 411 B

12345678910111213141516
  1. using System;
  2. namespace MediaBrowser.Model.Net
  3. {
  4. public interface ISocket : IDisposable
  5. {
  6. IpEndPointInfo LocalEndPoint { get; }
  7. IpEndPointInfo RemoteEndPoint { get; }
  8. void Close();
  9. void Shutdown(bool both);
  10. void Listen(int backlog);
  11. void Bind(IpEndPointInfo endpoint);
  12. void StartAccept(Action<ISocket> onAccept, Func<bool> isClosed);
  13. }
  14. }