Skip to main content

Alias

  • raknet.add_send_hook

Arguments

(packet: RakNetPacket) -> ()
requis
Function called with each observed outgoing RakNetPacket.

Retours

function
The same callback function that was passed in.

Types

RakNetPacket

Live packet object passed to RakNet hooks and packet signal callbacks. It is only valid during the callback that receives it.

Exemple

Observe outgoing packets with a callback and remove the same callback later.