点击或拖拽改变大小

NetworkBaseReceiveCommandLineFromSocketAsync 方法 (Socket, Byte, HslTimeOut)

接收一行命令数据,需要自己指定这个结束符,默认超时时间为60秒,也即是60000,单位是毫秒
To receive a line of command data, you need to specify the terminator yourself. The default timeout is 60 seconds, which is 60,000, in milliseconds.

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:9.6.0.0 (9.6.0.0)
语法
protected Task<OperateResult<byte[]>> ReceiveCommandLineFromSocketAsync(
	Socket socket,
	byte endCode,
	HslTimeOut timeOut
)

参数

socket
类型:System.Net.SocketsSocket
网络套接字
endCode
类型:SystemByte
结束符信息
timeOut
类型:HslCommunicationHslTimeOut

[缺少 "M:HslCommunication.Core.Net.NetworkBase.ReceiveCommandLineFromSocketAsync(System.Net.Sockets.Socket,System.Byte,HslCommunication.HslTimeOut)" 的 <param name="timeOut"/> 文档]

返回值

类型:TaskOperateResultByte
带有结果对象的数据信息
参见