Yuari
Documentation
Docs/RakNet/add_send_hook

add_send_hook

Global aliases for the RakNet hook functions.

Syntax

add_send_hook

Parameters

This function takes no parameters.

Returns

TypeDescription
nilThis function does not return a value.

Description

add_send_hook is part of the RakNet library. RakNet helpers expose the client's network stream: packet hooks, capture controls and bitstream serialization.

The operation is performed immediately using the arguments supplied at the call site.

The aliases remove_send_hook, add_receive_hook, remove_receive_hook resolve to the same implementation.

Example

local id = add_send_hook(function(packet) end)
remove_send_hook(id)

Notes

  • Aliases: remove_send_hook, add_receive_hook, remove_receive_hook.
  • Packet hooks run on the network path and should return quickly.