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()
andnet.Send...
.Parameters:
- content The content to compress
- bits
The number of bits for
net.WriteUInt()
to write the length of compressed binary data