You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
618 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Network
  5. {
  6. /// <summary>套接字的终端。</summary>
  7. [Serializable]
  8. public sealed class SocketEndPoint
  9. {
  10. /// <summary>对端 IP 地址。</summary>
  11. public string IP { get; set; }
  12. /// <summary>对端端口。</summary>
  13. public int Port { get; set; }
  14. /// <summary></summary>
  15. public SocketEndPoint() { }
  16. /// <summary></summary>
  17. public SocketEndPoint(string ip, int port)
  18. {
  19. IP = ip;
  20. Port = port;
  21. }
  22. }
  23. }