Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. network
Mission NodeSDK 6.3PawnAPI Reference

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.3 / Pawn / API Reference
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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

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

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

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

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

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

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

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

Trust & provenance

Document status

Source
Network · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

networkMember
NetWorkGetDataMember
NetWorkReadSignedValueMember
NetWorkReadValueMember
NetWorkResetMember
NetWorkSetDataMember
NetWorkWriteSignedValueMember
NetWorkWriteValueMember

Used in SDK snippets

network→ScrambleApp.cppnetwork→ScrambleApp.cppnetwork→ScrambleApp.cppnetwork→Messaging.cppnetwork→Messaging.cpp
Jump Grid

On This Page

PawnLibs/networkPawnLibs/network/NetWorkGetDataPawnLibs/network/NetWorkReadSignedValuePawnLibs/network/NetWorkReadValuePawnLibs/network/NetWorkResetPawnLibs/network/NetWorkSetDataPawnLibs/network/NetWorkWriteSignedValuePawnLibs/network/NetWorkWriteValue
Back to top ↑
Context Rail

Related nodes

SELF\ ID
API / SDK 6.3 / Pawn / API Reference
graphics
API / SDK 6.3 / Pawn / API Reference
SND\ cacheSounds
API / SDK 6.3 / Pawn / API Reference
topology
API / SDK 6.3 / Pawn / API Reference
Previous Node
scramble
API / SDK 6.3 / Pawn / API Reference
Next Node
save
API / SDK 6.3 / Pawn / API Reference