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

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;
}
}
}