NetworkAlienClient 类 |
命名空间: HslCommunication.Core.Net
NetworkAlienClient 类型公开以下成员。
名称 | 说明 | |
---|---|---|
NetworkAlienClient |
默认的无参构造方法 The default parameterless constructor |
名称 | 说明 | |
---|---|---|
EnableIPv6 |
获取或设置服务器是否支持IPv6的地址协议信息 (继承自 CommunicationTcpServer。)Get or set whether the server supports IPv6 address protocol information | |
IsCheckPwd |
是否统一检查密码,如果每个会话需要自己检查密码,就需要设置为false Whether to check the password uniformly, if each session needs to check the password by itself, it needs to be set to false | |
IsResponseAck |
在DTU设备发送了注册报文的时候,指示是否返回响应报文,用来通知DTU设备是否登录成功,默认为 True When a DTU sends a registration packet, it indicates whether to return a response packet to notify the DTU whether the DTU is logged in, The default is True | |
IsStarted |
服务器引擎是否启动 (继承自 CommunicationTcpServer。)Whether the server engine is started | |
LogDebugMessage |
记录一些调试日志的委托,将会进行输出调试文本。 (继承自 CommunicationTcpServer。)The delegate that records some debug logs will output debug text. | |
LogNet |
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出 (继承自 CommunicationTcpServer。)The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG | |
Port |
获取或设置服务器的端口号,如果是设置,需要在服务器启动前设置完成,才能生效。 (继承自 CommunicationTcpServer。)Gets or sets the port number of the server. If it is set, it needs to be set before the server starts to take effect. | |
SocketKeepAliveTime |
获取或设置客户端的Socket的心跳时间信息,这个是Socket底层自动实现的心跳包,不基于协议层实现。默认小于0,不开启心跳检测,如果需要开启,设置 60_000 比较合适,单位毫秒 (继承自 CommunicationTcpServer。)Get or set the heartbeat time information of the Socket of the client. This is the heartbeat packet automatically implemented by the bottom layer of the Socket, not based on the protocol layer. The default value is less than 0, and heartbeat detection is not enabled. If you need to enable it, it is more appropriate to set 60_000, in milliseconds. |
名称 | 说明 | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Dispose(Boolean) |
释放当前的对象
| |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
ExtraOnClose |
关闭的时候额外执行的功能代码
(继承自 CommunicationTcpServer。) | |
ExtraOnStart |
服务器启动的时候额外执行的功能代码
(继承自 CommunicationTcpServer。) | |
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。) | |
GetMsgFromCode |
获取错误的描述信息
| |
GetTrustedClients |
获取受信任的客户端列表 (继承自 CommunicationTcpServer。)Get a list of trusted clients | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
IsClientOnline |
检测当前的DTU是否在线
| |
LogDebugMsg |
记录当前的日志信息
(继承自 CommunicationTcpServer。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ServerClose |
关闭服务器的引擎 (继承自 CommunicationTcpServer。)Shut down the server's engine | |
ServerStart |
指定端口号来启动服务器的引擎 (继承自 CommunicationTcpServer。)Specify the port number to start the server's engine | |
ServerStart(Int32) |
指定端口号来启动服务器的引擎 (继承自 CommunicationTcpServer。)Specify the port number to start the server's engine | |
SetPassword |
设置密码,需要传入长度为6的字节数组 To set the password, you need to pass in an array of bytes of length 6 | |
SetTrustClients |
设置可信任的客户端列表,传入一个DTU的列表信息 Set up the list of trusted clients, passing in the list information for a DTU | |
SetTrustedIpAddress |
设置并启动受信任的客户端登录并读写,如果为null,将关闭对客户端的ip验证 (继承自 CommunicationTcpServer。)Set and start the trusted client login and read and write, if it is null, the client's IP verification will be turned off | |
SocketAcceptExtraCheck |
当客户端的socket登录的时候额外检查的操作,并返回操作的结果信息。 (继承自 CommunicationTcpServer。)The operation is additionally checked when the client's socket logs in, and the result information of the operation is returned. | |
ThreadPoolLogin |
当接收到了新的请求的时候执行的操作 (重写 CommunicationTcpServerThreadPoolLogin(PipeTcpNet, IPEndPoint).)An action performed when a new request is received | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) | |
UseSSL(X509Certificate) |
使用SSL通信,传递一个证书的对象
(继承自 CommunicationTcpServer。) | |
UseSSL(String, String) |
使用SSL通信,传递一个证书的路径,以及证书的密码
(继承自 CommunicationTcpServer。) |
名称 | 说明 | |
---|---|---|
OnClientConnected |
当有服务器连接上来的时候触发 Triggered when a server is connected |
名称 | 说明 | |
---|---|---|
socketServer |
核心的socket服务器
(继承自 CommunicationTcpServer。) | |
StatusLoginForbidden |
禁止登录
| |
StatusLoginRepeat |
重复登录
| |
StatusOk |
状态登录成功
| |
StatusPasswodWrong |
密码错误
|
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |