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

UdpSessionBaseProtectedSendAsync(EndPoint, IListArraySegmentByte) 方法

异步发送数据到指定的端点。

Definition

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

参数

endPoint  EndPoint
要发送数据的端点。
transferBytes  IListArraySegmentByte
待发送的字节数据列表,每个项包含要传输的字节片段。

返回值

Task
异步操作任务。

参见