SocketOpt.cs 975 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace XingYe_ACS.BaseStruct
{
    public class SocketOpt
    {
        /// <summary>
        /// 接收的报文数据
        /// </summary>
        public byte[] recData;

        /// <summary>
        /// 发送的报文数据
        /// </summary>
        public byte[] sendData;

        /// <summary>
        /// 客户端对象
        /// </summary>
        public Socket clientSocket;

        /// <summary>
        /// 处理时间
        /// </summary>
        public int dealTime;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="SClient">客户端对象</param>
        /// <param name="Rec">报文信息</param>
        public SocketOpt(Socket socket, byte[] receive)
        {
            clientSocket = socket;
            recData = receive;
        }
    }
}