protected Task ProtectedDefaultSendAsync(
EndPoint endPoint,
ReadOnlyMemory<byte> memory,
CancellationToken cancellationToken
)Protected Function ProtectedDefaultSendAsync (
endPoint As EndPoint,
memory As ReadOnlyMemory(Of Byte),
cancellationToken As CancellationToken
) As Taskmember ProtectedDefaultSendAsync :
endPoint : EndPoint *
memory : ReadOnlyMemory<byte> *
cancellationToken : CancellationToken -> Task [缺少 "M:TouchSocket.Sockets.UdpSessionBase.ProtectedDefaultSendAsync(System.Net.EndPoint,System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)" 的 <returns> 文档]
在执行实际的数据发送之前,方法会:
之后,使用SendToAsync(ArraySegmentByte, SocketFlags, EndPoint)方法异步地将数据发送到指定的端点。
发送完成后,更新最后一次发送时间(m_lastSendTime)为当前的UTC时间。