ENet Xojo plugin

ENetPacket Class (console safe)

A class that represents a packet for ENet.

Very important:
After packet has been sent then it cannot be reused or addressed in any way, once its sent then its internals are disposed off. Attempting to read from it once its been internally disposed of will not cause a crash but all the values will return zero or empty string depending on which function is called.

Object
   ENetPacket

class ENetPacket

Constructors

ENetPacketConstructs a reliable packet with a given size.
ENetPacketConstructs a packet with custom flags and given size

Properties

SizeReturns size of the packet in bytes.

Methods

CStringGets or sets a String value at a given offset that will be terminated with 0 character.
DoubleValueGets or sets a Double value at a given offset in the packet. (8 bytes)
Int16ValueGets or sets a Int16 value at a given offset in the packet.
Int32ValueGets or sets a Int32 value at a given offset in the packet.
Int64ValueGets or sets a Int64 value at a given offset in the packet.
Int8ValueGets or sets a Int8 value at a given offset in the packet.
ResizeResizes the packet.
SingleValueGets or sets a Single value at a given offset in the packet. (4 bytes)
ToStringConverts the whole package to string.
UInt16ValueGets or sets a UInt16 value at a given offset in the packet.
UInt32ValueGets or sets a UInt32 value at a given offset in the packet.
UInt64ValueGets or sets a UInt64 value at a given offset in the packet.
UInt8ValueGets or sets a UInt8 value at a given offset in the packet.
WStringGets or sets a UT16 String value at a given offset that will be terminated with a double byte 0 character.

Constants

Version = 1.6A version constant returning version of the plugin to aid conditional compile macros.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM