UdpSessionBaseProtectedSendAsync(EndPoint, ReadOnlyMemoryByte) 方法
异步发送数据到指定的端点。
该方法通过适配器转发数据,如果适配器未设置,则采用默认发送方式。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected virtual Task ProtectedSendAsync(
EndPoint endPoint,
ReadOnlyMemory<byte> memory
)
Protected Overridable Function ProtectedSendAsync (
endPoint As EndPoint,
memory As ReadOnlyMemory(Of Byte)
) As Task
abstract ProtectedSendAsync :
endPoint : EndPoint *
memory : ReadOnlyMemory<byte> -> Task
override ProtectedSendAsync :
endPoint : EndPoint *
memory : ReadOnlyMemory<byte> -> Task
- endPoint EndPoint
- 要发送数据到的目标端点。
- memory ReadOnlyMemoryByte
- 待发送的字节数据。
Task返回一个任务,表示异步操作的结果。