点击或拖拽改变大小

NetworkXBaseSendFileStreamToSocket 方法

[自校验] 将文件数据发送至套接字,如果结果异常,则结束通讯
[Self-check] Send the file data to the socket. If the result is abnormal, the communication is ended.

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
protected OperateResult SendFileStreamToSocket(
	Socket socket,
	string filename,
	long filelength,
	Action<long, long> report = null
)

参数

socket
类型:System.Net.SocketsSocket
网络套接字
filename
类型:SystemString
完整的文件路径
filelength
类型:SystemInt64
文件的长度
report (Optional)
类型:SystemActionInt64, Int64
进度报告器

返回值

类型:OperateResult
是否发送成功
参见