UdpSessionBaseProtectedSendAsync(ReadOnlyMemoryByte, CancellationToken) 方法
异步发送数据,使用提供的内存数据。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
protected virtual Task ProtectedSendAsync(
ReadOnlyMemory<byte> memory,
CancellationToken cancellationToken
)
Protected Overridable Function ProtectedSendAsync (
memory As ReadOnlyMemory(Of Byte),
cancellationToken As CancellationToken
) As Task
abstract ProtectedSendAsync :
memory : ReadOnlyMemory<byte> *
cancellationToken : CancellationToken -> Task
override ProtectedSendAsync :
memory : ReadOnlyMemory<byte> *
cancellationToken : CancellationToken -> Task
- memory ReadOnlyMemoryByte
- 要发送的字节数据的内存段。
- cancellationToken CancellationToken
- 可取消令箭
Task返回一个任务,表示发送操作的异步执行。