Module NetUtil

Library for enabling Log4g to transfer data over the game network.

Info:

  • Copyright: GrayWolf64
  • License: Apache License 2.0

Functions

AddNetworkStrsViaTbl (tbl) Add all the string values in a table to network string table.
WriteDataSimple (content, bits) Write simple compressed data.


Functions

AddNetworkStrsViaTbl (tbl)
Add all the string values in a table to network string table.

Parameters:

  • tbl The table of network strings to add
WriteDataSimple (content, bits)
Write simple compressed data. Must be used between net.Start() and net.Send....

Parameters:

  • content The content to compress
  • bits The number of bits for net.WriteUInt() to write the length of compressed binary data
generated by LDoc 1.5.0 Last updated 2023-07-17 09:58:50