| NetworkBaseSendBytesAndCheckReceiveAsync 方法  | 
 
            [自校验] 发送字节数据并确认对方接收完成数据,如果结果异常,则结束通讯
            [Self-check] Send the byte data and confirm that the other party has received the completed data. 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> SendBytesAndCheckReceiveAsync(
	Socket socket,
	int customer,
	byte[] send
)
Protected Function SendBytesAndCheckReceiveAsync ( 
	socket As Socket,
	customer As Integer,
	send As Byte()
) As Task(Of OperateResult)
protected:
Task<OperateResult^>^ SendBytesAndCheckReceiveAsync(
	Socket^ socket, 
	int customer, 
	array<unsigned char>^ send
)
member SendBytesAndCheckReceiveAsync : 
        socket : Socket * 
        customer : int * 
        send : byte[] -> Task<OperateResult> 
参数
- socket
- 类型:System.Net.SocketsSocket
 网络套接字
- customer
- 类型:SystemInt32
 用户指令
- send
- 类型:SystemByte
 发送的数据
返回值
类型:
TaskOperateResult是否发送成功
 参见
参见