| NetworkBaseReceiveBytesContentFromSocketAsync 方法  | 
 
            [自校验] 从网络中接收一串字节数据,如果结果异常,则结束通讯
            [Self-checking] Receive a string of byte data from the network. If the result is abnormal, the communication ends.
            
 
        命名空间: 
     HslCommunication.Core.Net
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法protected Task<OperateResult<int, byte[]>> ReceiveBytesContentFromSocketAsync(
	Socket socket,
	int timeout = 30000
)
Protected Function ReceiveBytesContentFromSocketAsync ( 
	socket As Socket,
	Optional timeout As Integer = 30000
) As Task(Of OperateResult(Of Integer, Byte()))
protected:
Task<OperateResult<int, array<unsigned char>^>^>^ ReceiveBytesContentFromSocketAsync(
	Socket^ socket, 
	int timeout = 30000
)
member ReceiveBytesContentFromSocketAsync : 
        socket : Socket * 
        ?timeout : int 
(* Defaults:
        let _timeout = defaultArg timeout 30000
*)
-> Task<OperateResult<int, byte[]>> 
参数
- socket
- 类型:System.Net.SocketsSocket
 套接字的网络
- timeout (Optional)
- 类型:SystemInt32
 超时时间
返回值
类型:
TaskOperateResultInt32, 
Byte包含是否成功的结果对象
 参见
参见