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.