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

UdpDataHandlingAdapterGoSendAsync 方法

发送已经经过预先处理后的数据

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
protected Task GoSendAsync(
	EndPoint endPoint,
	ReadOnlyMemory<byte> memory,
	CancellationToken cancellationToken
)

参数

endPoint  EndPoint
目标端点,表示数据发送的目的地址
memory  ReadOnlyMemoryByte
已经经过预先处理的字节数据,以 ReadOnlyMemory 方式传递以提高性能
cancellationToken  CancellationToken
可取消令箭

返回值

Task
返回一个 Task 对象,表示异步操作的完成

参见