一款简单易用的基础网络通讯组件库。

NamedPipeClientBaseProtectedSendAsync(IListArraySegmentByte) 方法

异步发送经过处理的数据。 如果ProtectedDataHandlingAdapter未设置或者不支持拼接发送,则将transferBytes合并到一个连续的内存块中再发送。 如果ProtectedDataHandlingAdapter已设置且支持拼接发送,则直接发送transferBytes。

Definition

命名空间: TouchSocket.NamedPipe
程序集: TouchSocket.NamedPipe (在 TouchSocket.NamedPipe.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
protected Task ProtectedSendAsync(
	IList<ArraySegment<byte>> transferBytes
)

参数

transferBytes  IListArraySegmentByte
待发送的字节数据列表,每个元素包含要传输的字节片段。

返回值

Task
发送任务。

参见