SocketOpt.cs
975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
}
}
}