KukaTcpNetReadFromCoreServerAsync 方法 |
名称 | 说明 | |
---|---|---|
ReadFromCoreServerAsync(Byte) |
将数据发送到当前的网络通道中,并从网络通道中接收一个INetMessage指定的完整的报文,网络通道将根据GetAvailableSocket方法自动获取,本方法是线程安全的。 (继承自 NetworkDoubleBase。)Send data to the current network channel and receive a complete message specified by INetMessage from the network channel. The network channel will be automatically obtained according to the GetAvailableSocket method This method is thread-safe. | |
ReadFromCoreServerAsync(IEnumerableByte) |
将多个数据报文按顺序发到设备,并从设备接收返回的数据内容,然后拼接成一个Byte[]信息,需要重写UnpackResponseContent(Byte, Byte)方法才能返回正确的结果。 (继承自 NetworkDoubleBase。)Send multiple data packets to the device in sequence, and receive the returned data content from the device, and then splicing them into a Byte[] message, you need to rewrite UnpackResponseContent(Byte, Byte) method to return the correct result. | |
ReadFromCoreServerAsync(Byte, Boolean, Boolean) |
将数据发送到当前的网络通道中,并从网络通道中接收一个INetMessage指定的完整的报文,网络通道将根据GetAvailableSocket方法自动获取,本方法是线程安全的。 (继承自 NetworkDoubleBase。)Send data to the current network channel and receive a complete message specified by INetMessage from the network channel. The network channel will be automatically obtained according to the GetAvailableSocket method This method is thread-safe. | |
ReadFromCoreServerAsync(Socket, Byte, Boolean, Boolean) |
将数据报文发送指定的网络通道上,根据当前指定的INetMessage类型,返回一条完整的数据指令 (重写 NetworkDoubleBaseReadFromCoreServerAsync(Socket, Byte, Boolean, Boolean).)Sends a data message to the specified network channel, and returns a complete data command according to the currently specified INetMessage type |