Skip to main content

Aliases

  • raknet.add_receive_hook

Argumentos

(packet: RakNetPacket) -> ()
obrigatório
Function called with each observed incoming RakNetPacket.

Retornos

function
The same callback function that was passed in.

Tipos

RakNetPacket

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

Exemplo

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