ningshuxia
2023-04-13 13aeccc4305083d2d61274709a0066511fae42a1
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace IStation.Model
{
    /// <summary>
    /// 监测数据对接会话接口
    /// </summary>
    public interface IMonitorDataDockingSession 
    {
        /// <summary>
        /// 会话标识
        /// </summary>
        string SessionID { get; }
 
        /// <summary>
        /// 会话名称
        /// </summary>
        string SessionName { get; set; }
 
        /// <summary>
        /// 注册码
        /// </summary>
        string RegisterCode { get; }
 
        /// <summary>
        /// 心跳包
        /// </summary>
        string Heartbeat { get; }
 
        /// <summary>
        /// 发送文本
        /// </summary>
        void Send(string message);
 
        /// <summary>
        /// 发送字节
        /// </summary>
        void Send(byte[] data);
 
        /// <summary>
        /// 发送字节
        /// </summary>
        void Send(byte[] data, int offset, int length);
 
        /// <summary>
        /// 关闭
        /// </summary>
        void Close(string reason);
 
        /// <summary>
        /// 是否连接
        /// </summary>
        bool IsConnected { get; }
 
        /// <summary>
        /// 会话关闭事件
        /// </summary>
        event Action SessionClosedEvent;
 
 
 
 
    }
}