IRequestInfoParser.cs 572 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Protocol
  6. {
  7. /// <summary>
  8. /// The interface for request info parser
  9. /// </summary>
  10. public interface IRequestInfoParser<TRequestInfo>
  11. where TRequestInfo : IRequestInfo
  12. {
  13. /// <summary>
  14. /// Parses the request info from the source string.
  15. /// </summary>
  16. /// <param name="source">The source.</param>
  17. /// <returns></returns>
  18. TRequestInfo ParseRequestInfo(string source);
  19. }
  20. }