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

NatTargetClientSendAsync(IListArraySegmentByte) 方法

异步组合发送数据。

该发送会经过适配器封装,具体封装内容由适配器决定。

Definition

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

参数

transferBytes  IListArraySegmentByte
组合数据

返回值

Task

[缺少 "M:TouchSocket.Sockets.NatTargetClient.SendAsync(System.Collections.Generic.IList{System.ArraySegment{System.Byte}})" 的 <returns> 文档]

实现

IClientSenderSendAsync(IListArraySegmentByte)

异常

ClientNotConnectedException客户端没有连接
OverlengthException发送数据超长
Exception其他异常

参见