/src/Manos.IO/Manos.IO/ITcpServerSocket.cs

http://github.com/jacksonh/manos · C# · 15 lines · 9 code · 2 blank · 4 comment · 0 complexity · 3191c4cc277b2e4c56d945f0c2b87746 MD5 · raw file

  1. using System;
  2. using System.Net;
  3. namespace Manos.IO
  4. {
  5. public interface ITcpServerSocket : ISocket<IPEndPoint>
  6. {
  7. /// <summary>
  8. /// Listen for new connections, invoke the specified delegate for each accepted
  9. /// connection.
  10. /// </summary>
  11. void Listen (int backlog, Action<ITcpSocket> callback);
  12. }
  13. }