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

TcpClientBaseProtectedSendAsync(IListArraySegmentByte) 方法

异步发送数据。 如果数据处理适配器不存在或无法拼接发送,则将所有传输字节合并到一个连续的内存块中发送。 如果数据处理适配器存在且支持拼接发送,则直接发送传输字节列表。

Definition

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

参数

transferBytes  IListArraySegmentByte
要发送的字节数据列表,每个项代表一个字节片段。

返回值

Task
发送任务。

参见