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.