NetSimplifyClientReadFromServerAsync 方法 (NetHandle, Byte) |
客户端向服务器进行请求,请求字节数据
命名空间:
HslCommunication.Enthernet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<byte[]>> ReadFromServerAsync(
NetHandle customer,
byte[] send
)
Public Function ReadFromServerAsync (
customer As NetHandle,
send As Byte()
) As Task(Of OperateResult(Of Byte()))
public:
Task<OperateResult<array<unsigned char>^>^>^ ReadFromServerAsync(
NetHandle customer,
array<unsigned char>^ send
)
member ReadFromServerAsync :
customer : NetHandle *
send : byte[] -> Task<OperateResult<byte[]>>
参数
- customer
- 类型:HslCommunicationNetHandle
用户的指令头 - send
- 类型:SystemByte
发送的字节内容
返回值
类型:
TaskOperateResultByte带返回消息的结果对象
参见