ENetPacket.Constructor Constructor
Constructs a packet with custom flags and given size

Constructor(
size
as Integer,
reliable
as Boolean,
unsequenced
as Boolean)
Parameters
- size
- The size of the packet to be constructed. Packet can be resized afterwards by using the Resize method.
- reliable
- True if the packet is supposed to be reliable, else false.
- unsequenced
- True if the packets should be un-sequenced, else false. This parameter is ignored if the reliable parameter is set to true.
Remarks
For reliable packets then packet must be received by the target peer and resend attempts should be made until the packet is delivered.
For unreliable packets then packet will be fragmented using unreliable (instead of reliable) sends if it exceeds the MTU.
For un-sequenced packets then packet will not be sequenced with other packets not supported for reliable packets.
See Also
ENetPacket Class