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

UdpSessionBaseProtectedSendAsync(EndPoint, IRequestInfo) 方法

异步发送请求信息到指定的端点。 在发送之前,会检查是否具备发送请求信息的能力,并通过适配器进行发送。

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
protected virtual Task ProtectedSendAsync(
	EndPoint endPoint,
	IRequestInfo requestInfo
)

参数

endPoint  EndPoint
要发送数据到的目标端点。
requestInfo  IRequestInfo
待发送的请求信息。

返回值

Task
返回一个任务,表示异步操作的结果。

参见