Blame view

sys/sys_HSL/Hh.Mes.HSL/Enthernet/DeviceNet/DeviceState.cs 985 Bytes
赖素文 authored
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
using System;
using System.Net;
using System.Net.Sockets;

namespace HslCommunication.Enthernet
{
    /// <summary>
    /// 通用设备的基础状态
    /// </summary>
    public class DeviceState
    {
        /// <summary>
        /// 设备的连接地址
        /// </summary>
        public IPEndPoint DeviceEndPoint { get; set; }

        /// <summary>
        /// 设备的连接时间
        /// </summary>
        public DateTime ConnectTime { get; set; }

        /// <summary>
        /// 网络套接字
        /// </summary>
        internal Socket WorkSocket { get; set; }

        /// <summary>
        /// 上次接收到信息的时间
        /// </summary>
        public DateTime ReceiveTime { get; set; }

        /// <summary>
        /// 设备的ip地址
        /// </summary>
        public string IpAddress { get; set; }

        /// <summary>
        /// 缓冲内存块
        /// </summary>
        internal byte[] Buffer = new byte[1];
    }
}