点击或拖拽改变大小

DTUServer 方法

DTUServer 类型公开以下成员。

方法
  名称说明
公共方法Dispose (继承自 NetworkAlienClient。)
受保护的方法Dispose(Boolean)
释放当前的对象
(继承自 NetworkAlienClient。)
公共方法Equals (继承自 Object。)
受保护的方法ExtraOnClose
关闭的时候额外执行的功能代码
(重写 CommunicationTcpServerExtraOnClose.)
受保护的方法ExtraOnStart
服务器启动的时候额外执行的功能代码
(继承自 CommunicationTcpServer。)
受保护的方法Finalize (继承自 Object。)
公共方法GetAlienSessions
获取所有的会话信息,是否在线,上线的基本信息
Get all the session information, whether it is online, online basic information
公共方法GetDevices
获取所有的设备的信息,可以用来读写设备的数据信息
Get all device information, can be used to read and write device data information
公共方法GetHashCode (继承自 Object。)
公共方法GetTrustedClients
获取受信任的客户端列表
Get a list of trusted clients
(继承自 CommunicationTcpServer。)
公共方法GetType (继承自 Object。)
公共方法IsClientOnline
检测当前的DTU是否在线
(重写 NetworkAlienClientIsClientOnline(AlienSession).)
受保护的方法LogDebugMsg
记录当前的日志信息
(继承自 CommunicationTcpServer。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ServerClose
关闭服务器的引擎
Shut down the server's engine
(继承自 CommunicationTcpServer。)
公共方法ServerStart
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine
(继承自 CommunicationTcpServer。)
公共方法ServerStart(Int32)
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine
(继承自 CommunicationTcpServer。)
公共方法SetPassword
设置密码,需要传入长度为6的字节数组
To set the password, you need to pass in an array of bytes of length 6
(继承自 NetworkAlienClient。)
公共方法SetTrustClients
设置可信任的客户端列表,传入一个DTU的列表信息
Set up the list of trusted clients, passing in the list information for a DTU
(继承自 NetworkAlienClient。)
公共方法SetTrustedIpAddress
设置并启动受信任的客户端登录并读写,如果为null,将关闭对客户端的ip验证
Set and start the trusted client login and read and write, if it is null, the client's IP verification will be turned off
(继承自 CommunicationTcpServer。)
受保护的方法SocketAcceptExtraCheck
当客户端的socket登录的时候额外检查的操作,并返回操作的结果信息。
The operation is additionally checked when the client's socket logs in, and the result information of the operation is returned.
(继承自 CommunicationTcpServer。)
受保护的方法ThreadPoolLogin
当接收到了新的请求的时候执行的操作
An action performed when a new request is received
(继承自 NetworkAlienClient。)
公共方法ToString (重写 NetworkAlienClientToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见