RemoteConnectInfo 类 |
命名空间: HslCommunication.Core.Net
RemoteConnectInfo 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | RemoteConnectInfo(String, Int32, Byte) |
实例化一个远程连接信息对象,指定自定义的远程 DTU 注册包
|
![]() | RemoteConnectInfo(String, Int32, String, String, Boolean) |
实例化一个远程连接信息对象,传入 IP,Port 来创建符合 HSL 标准的 DTU 注册包
|
名称 | 说明 | |
---|---|---|
![]() | DtuBytes |
DTU的注册包 Registration package for DTU |
![]() | DtuId |
如果使用的是 HSL 格式的DTU消息的话,就是传入的 dtuid 信息
|
![]() | EndPoint |
远程端口号信息 Remote port number information |
![]() | NeedAckResult |
是否需要返回注册结果的报文 Whether to return the registration result packet |
![]() | Session |
会话信息 Session information |
![]() | Status |
当前DTU会话的状态信息,如果需要关闭当前的会话并退出重连,设置本属性为 Closed 即可
|
名称 | 说明 | |
---|---|---|
![]() | Close |
关闭当前的 DTU 连接 Close the current DTU connection |
![]() | Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
![]() | GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() | GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
![]() | ToString | Returns a string that represents the current object. (继承自 Object。) |
名称 | 说明 | |
---|---|---|
![]() | ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |