using System; using System.Collections.Generic; using System.Text; namespace Apewer.Network { /// <summary>套接字数据接收模型。</summary> [Serializable] public sealed class SocketReceived { /// <summary>对端 IP 地址。</summary> public string IP { get; set; } /// <summary>对端端口。</summary> public int Port { get; set; } /// <summary>对端数据。</summary> public byte[] Bytes { get; set; } /// <summary></summary> public SocketReceived() { } /// <summary></summary> public SocketReceived(string ip, int port, byte[] bytes) { IP = ip; Port = port; Bytes = bytes; } } }