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

UdpDataHandlingAdapterSendInputAsync(EndPoint, ReadOnlyMemoryByte, CancellationToken) 方法

异步发送输入数据。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public Task SendInputAsync(
	EndPoint endPoint,
	ReadOnlyMemory<byte> memory,
	CancellationToken cancellationToken
)

参数

endPoint  EndPoint
要发送数据的端点。
memory  ReadOnlyMemoryByte
包含要发送的数据的只读内存。
cancellationToken  CancellationToken
可取消令箭。

返回值

Task
返回一个任务,表示发送操作。

参见