Skip to main content

별칭

  • raknet.add_receive_hook

인수

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

반환값

function
The same callback function that was passed in.

타입

RakNetPacket

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

예제

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