CommunicationServer 属性 |
CommunicationServer 类型公开以下成员。
名称 | 说明 | |
---|---|---|
CheckSerialDataComplete |
检查串口接收到的数据是否完整
| |
CreateNewMessage |
获取一个新的消息对象的方法,需要在继承类里面进行重写 The method to get a new message object needs to be overridden in the inheritance class | |
CreatePipeSession |
创建会话状态的委托对象,也就可以自己指定创建自定义的会话
| |
EnableIPv6 |
获取或设置服务器是否支持IPv6的地址协议信息 (继承自 CommunicationTcpServer。)Get or set whether the server supports IPv6 address protocol information | |
ForceSerialReceiveOnce |
获取或设置当前的服务器接收串口数据时候,是否强制只接收一次数据,默认为false,适合点对点通信,如果你总线形式的连接,则需要设置 True Get or set whether to force the data to be received only once when the current server receives serial port data. The default value is false, which is suitable for point-to-point communication. If you have a bus connection, you need to set 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. | |
SerialReceiveAtleastTime |
获取或设置串口模式下,接收一条数据最短的时间要求,当设备发送的数据非常慢的时候,或是分割发送数据的时候,就需要将本值设置的大一点,默认为20ms Get or set the shortest time required to receive a piece of data in serial port mode. When the data sent by the device is very slow, or when the data is divided and sent, you need to set this value to a larger value, the default is 20ms | |
SessionsMax |
获取或设置当前允许登录的最大客户端数量,默认为 uint.MaxValue = 4294967295 Gets or sets the maximum number of clients that are currently allowed to log in, which defaults to uint.MaxValue = 4294967295 | |
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. | |
ThreadPoolLoginAfterClientCheck |
当线程检查后,进行登录之前的检查,通常用于自定义的握手包校验操作。仅对TCP通信的时候有效。
| |
UdpBufferSize |
获取或设置一次接收时的数据长度,默认2KB数据长度,特殊情况的时候需要调整 Gets or sets the length of data received at a time. The default length is 2KB |