Skip to main content

Aliase

  • raknet.add_receive_hook

Argumente

(packet: RakNetPacket) -> ()
erforderlich
Function called with each observed incoming RakNetPacket.

Rückgaben

function
The same callback function that was passed in.

Typen

RakNetPacket

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

Beispiel

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