Yuari
Documentation
Docs/RakNet/raknet.getpacketlog

raknet.getpacketlog

Reads or clears the packet log.

Syntax

raknet.getpacketlog() -> table

Parameters

This function takes no parameters.

Returns

TypeDescription
tableThe returned collection or table.

Description

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

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

The aliases clearpacketlog() resolve to the same implementation.

Example

local log = raknet.getpacketlog()
print(#log)
raknet.clearpacketlog()

Notes

  • Aliases: clearpacketlog().
  • Packet hooks run on the network path and should return quickly.