UdpSessionBaseOnUdpSending 方法
在UDP数据即将发送时触发插件。
如果当前类覆盖了父类的方法,则不会触发插件。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected virtual ValueTask<bool> OnUdpSending(
EndPoint endPoint,
ReadOnlyMemory<byte> memory
)
Protected Overridable Function OnUdpSending (
endPoint As EndPoint,
memory As ReadOnlyMemory(Of Byte)
) As ValueTask(Of Boolean)
abstract OnUdpSending :
endPoint : EndPoint *
memory : ReadOnlyMemory<byte> -> ValueTask<bool>
override OnUdpSending :
endPoint : EndPoint *
memory : ReadOnlyMemory<byte> -> ValueTask<bool>
- endPoint EndPoint
- 发送目标的端点。
- memory ReadOnlyMemoryByte
- 待发送的字节数据。
ValueTaskBoolean返回一个ValueTask布尔对象,指示插件是否处理了发送事件。