ListenerConfig.cs 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Config
  6. {
  7. /// <summary>
  8. /// Listener configuration model
  9. /// </summary>
  10. [Serializable]
  11. public class ListenerConfig : IListenerConfig
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="ListenerConfig"/> class.
  15. /// </summary>
  16. public ListenerConfig()
  17. {
  18. Backlog = 100;
  19. }
  20. /// <summary>
  21. /// Gets the ip of listener
  22. /// </summary>
  23. public string Ip { get; set; }
  24. /// <summary>
  25. /// Gets the port of listener
  26. /// </summary>
  27. public int Port { get; set; }
  28. /// <summary>
  29. /// Gets the backlog.
  30. /// </summary>
  31. public int Backlog { get; set; }
  32. /// <summary>
  33. /// Gets/sets the security option, None/Default/Tls/Ssl/...
  34. /// </summary>
  35. public string Security { get; set; }
  36. }
  37. }