UdpSessionBaseProtectedSendAsync(ReadOnlyMemoryByte, CancellationToken) 方法
异步发送数据,使用提供的内存数据。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
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返回一个任务,表示发送操作的异步执行。