| 程序包 | 说明 |
|---|---|
| HslCommunication.Core.Net |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
NetSupport.ReadBytesFromSocket(Socket socket,
int receive,
ActionOperateExTwo<Long,Long> reportProgress)
从socket的网络中读取数据内容,需要指定数据长度和超时的时间,为了防止数据太大导致接收失败,所以此处接收到新的数据之后就更新时间。
|
Copyright © 2022. All rights reserved.