PipeUdpNet 属性 |
PipeUdpNet 类型公开以下成员。
名称 | 说明 | |
---|---|---|
CommunicationLock |
获取或设置当前管道的线程锁对象,默认是简单的一个互斥锁 (继承自 CommunicationPipe。)Gets or sets the thread lock object of the current pipeline, which defaults to a simple mutex | |
ConnectTimeOut |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈 (继承自 PipeTcpNet。)Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback | |
DecideWhetherQAMessageFunction |
用来决定当前接收的消息是否是问答服务的消息
(继承自 CommunicationPipe。) | |
Host |
获取当前设置的远程的地址,可能是IP地址,也可能是网址,也就是初始设置的地址信息 (继承自 PipeTcpNet。)Obtain the address of the remote address that is currently set, which may be an IP address or a web address, that is, the address information that is initially set | |
IpAddress |
获取或是设置远程服务器的IP地址,如果是本机测试,那么需要设置为127.0.0.1 (继承自 PipeTcpNet。)Get or set the IP address of the remote server. If it is a local test, then it needs to be set to 127.0.0.1 | |
IsPersistentConnection |
获取或设置当前的管道是否是长连接,仅对于串口及TCP是有效的,默认都是长连接
(继承自 CommunicationPipe。) | |
LocalBinding |
获取或设置绑定的本地的IP地址和端口号信息,如果端口设置为0,代表任何可用的端口 (继承自 PipeTcpNet。)Get or set the bound local IP address and port number information, if the port is set to 0, it means any available port | |
Port |
获取或设置服务器的端口号,具体的值需要取决于对方的配置 (继承自 PipeTcpNet。)Gets or sets the port number of the server. The specific value depends on the configuration of the other party. | |
ReceiveCacheLength |
获取或设置一次接收时的数据长度,默认2KB数据长度,特殊情况的时候需要调整 Gets or sets the length of data received at a time. The default length is 2KB | |
ReceiveTimeOut |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈 (继承自 CommunicationPipe。)Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback | |
SleepTime |
获取或设置在正式接收对方返回数据前的时候,需要休息的时间,当设置为0的时候,不需要休息。 (继承自 CommunicationPipe。)Get or set the time required to rest before officially receiving the data from the other party. When it is set to 0, no rest is required. | |
Socket |
获取或设置当前的客户端用于服务器连接的套接字。 (继承自 PipeTcpNet。)Gets or sets the socket currently used by the client for server connection. | |
SocketKeepAliveTime |
获取或设置客户端的Socket的心跳时间信息,这个是Socket底层自动实现的心跳包,不基于协议层实现。默认小于0,不开启心跳检测,如果需要开启,设置 60_000 比较合适,单位毫秒 (继承自 PipeTcpNet。)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. | |
UseServerActivePush |
获取或设置当前的管道是否激活从设备主动推送的功能,设置为 true 时支持主动从设备方接收数据信息 (继承自 CommunicationPipe。)Gets or sets whether the current pipeline activates the function of actively pushing data from the device. If this is set to true, it supports actively receiving data information from the device |