WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. PawnLibs/network
Mission NodeSDK 6.2PawnAPI Reference

PawnLibs/network

PawnLibs/network Summary A helper library for packing and unpacking network data. Description Pawn works with cells which has a size of 4 bytes. Native inter...

API / SDK 6.2 / Pawn / API Reference

PawnLibs/network

Summary

A helper library for packing and unpacking network data.

Description

Pawn works with cells which has a size of 4 bytes. Native interfaces handling generic data like network messages have size limits for that data. If application does not need to work with a large numbers, several values can be packed into a single cell. This library provides some convenient functions to pack and unpack such values from array of cells which can be broadcasted over network by core functions.

Example

TBD

PawnLibs/network/NetWorkGetData

Summary

Get packed data to broadcast.

Synopsis

PawnLibs/network
PAWN
1NetWorkGetData()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Return value

Packed data to broadcast.

See also

  • broadcastMessage()
  • broadcastPacket()

PawnLibs/network/NetWorkReadSignedValue

Summary

Read specified number of bits of packed signed value.

Synopsis

PawnLibs/network
PAWN
1NetWorkReadSignedValue(bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • bits - a number of bits to get

Return value

Unpacked signed value.

PawnLibs/network/NetWorkReadValue

Summary

Read specified number of bits of packed unsigned value.

Synopsis

PawnLibs/network
PAWN
1NetWorkReadValue(bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • bits - a number of bits to get

Return value

Unpacked unsigned value.

PawnLibs/network/NetWorkReset

Summary

Reset state before storing new data to pack.

Synopsis

PawnLibs/network
PAWN
1NetWorkReset()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

PawnLibs/network/NetWorkSetData

Summary

Populate state with a new data to unpack.

Synopsis

PawnLibs/network
PAWN
1NetWorkSetData(const pkt[],size)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • pkt - packet data to unpack
  • size - data size

See also

  • ON_Packet()

PawnLibs/network/NetWorkWriteSignedValue

Summary

Store specified number of bits from some signed value.

Synopsis

PawnLibs/network
PAWN
1NetWorkWriteSignedValue(value, bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • value - a value to store data from
  • bits - a number of bits to store

PawnLibs/network/NetWorkWriteValue

Summary

Store specified number of bits from some unsigned value.

Synopsis

PawnLibs/network
PAWN
1NetWorkWriteValue(value, bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • value - a value to store data from
  • bits - a number of bits to store

Jump Grid

On This Page

PawnLibs/network/NetWorkGetDataPawnLibs/network/NetWorkReadSignedValuePawnLibs/network/NetWorkReadValuePawnLibs/network/NetWorkResetPawnLibs/network/NetWorkSetDataPawnLibs/network/NetWorkWriteSignedValuePawnLibs/network/NetWorkWriteValue
Context Rail

Related nodes

PawnLibs/wowcore/SELF\ ID
API / SDK 6.2 / Pawn / API Reference
PawnLibs/graphics
API / SDK 6.2 / Pawn / API Reference
PawnLibs/sound/SND\ cacheSounds
API / SDK 6.2 / Pawn / API Reference
PawnLibs/topology
API / SDK 6.2 / Pawn / API Reference
Previous Node
PawnLibs/scramble
API / SDK 6.2 / Pawn / API Reference
Next Node
PawnLibs/save
API / SDK 6.2 / Pawn / API Reference