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