TcpClientBaseProtectedSendAsync(IListArraySegmentByte) 方法
异步发送数据。
如果数据处理适配器不存在或无法拼接发送,则将所有传输字节合并到一个连续的内存块中发送。
如果数据处理适配器存在且支持拼接发送,则直接发送传输字节列表。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected Task ProtectedSendAsync(
IList<ArraySegment<byte>> transferBytes
)
Protected Function ProtectedSendAsync (
transferBytes As IList(Of ArraySegment(Of Byte))
) As Task
member ProtectedSendAsync :
transferBytes : IList<ArraySegment<byte>> -> Task
- transferBytes IListArraySegmentByte
- 要发送的字节数据列表,每个项代表一个字节片段。
Task发送任务。