ISocketServerFactory.cs 952 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using SuperSocket.SocketBase.Command;
  7. using SuperSocket.SocketBase.Config;
  8. using SuperSocket.SocketBase.Protocol;
  9. namespace SuperSocket.SocketBase
  10. {
  11. /// <summary>
  12. /// The interface for socket server factory
  13. /// </summary>
  14. public interface ISocketServerFactory
  15. {
  16. /// <summary>
  17. /// Creates the socket server instance.
  18. /// </summary>
  19. /// <typeparam name="TRequestInfo">The type of the request info.</typeparam>
  20. /// <param name="appServer">The app server.</param>
  21. /// <param name="listeners">The listeners.</param>
  22. /// <param name="config">The config.</param>
  23. /// <returns></returns>
  24. ISocketServer CreateSocketServer<TRequestInfo>(IAppServer appServer, ListenerInfo[] listeners, IServerConfig config)
  25. where TRequestInfo : IRequestInfo;
  26. }
  27. }