UdpSessionBaseProtectedSendAsync(EndPoint, IRequestInfo) 方法
异步发送请求信息到指定的端点。
在发送之前,会检查是否具备发送请求信息的能力,并通过适配器进行发送。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected virtual Task ProtectedSendAsync(
EndPoint endPoint,
IRequestInfo requestInfo
)
Protected Overridable Function ProtectedSendAsync (
endPoint As EndPoint,
requestInfo As IRequestInfo
) As Task
abstract ProtectedSendAsync :
endPoint : EndPoint *
requestInfo : IRequestInfo -> Task
override ProtectedSendAsync :
endPoint : EndPoint *
requestInfo : IRequestInfo -> Task
- endPoint EndPoint
- 要发送数据到的目标端点。
- requestInfo IRequestInfo
- 待发送的请求信息。
Task返回一个任务,表示异步操作的结果。