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.

35 lines
758 B

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 SocketReceived
  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 byte[] Bytes { get; set; }
  16. /// <summary></summary>
  17. public SocketReceived() { }
  18. /// <summary></summary>
  19. public SocketReceived(string ip, int port, byte[] bytes)
  20. {
  21. IP = ip;
  22. Port = port;
  23. Bytes = bytes;
  24. }
  25. }
  26. }