MetaPlatformSDK_Packet

Inherits: RefCounted

Represents a network packet.

Description

Represents a network packet.

Properties

PackedByteArray

bytes

PackedByteArray()

int

sender_id

0

int

size

0


Property Descriptions

PackedByteArray bytes = PackedByteArray()

  • PackedByteArray get_bytes ( )

The packet data. Ideally, it is recommended to keep a message under 1200 bytes so that data can fit into a single packet.


int sender_id = 0

  • int get_sender_id ( )

Represents the id of the sender of the packet.


int size = 0

  • int get_size ( )

The number of bytes in the packet.