UdpSessionBaseProtectedSendAsync(IListArraySegmentByte) 方法
异步安全发送数据方法。
本方法提供了一种安全的异步数据发送方式,确保在发送过程中,
使用了端点信息并且避免了潜在的空引用错误。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected Task ProtectedSendAsync(
IList<ArraySegment<byte>> transferBytes
)
Protected Function ProtectedSendAsync (
transferBytes As IList(Of ArraySegment(Of Byte))
) As Task
member ProtectedSendAsync :
transferBytes : IList<ArraySegment<byte>> -> Task
- transferBytes IListArraySegmentByte
- 要发送的字节数据集合。
Task返回一个任务,表示异步操作的完成。