Public Types | Public Attributes

InternalPacket Struct Reference

#include <InternalPacket.h>

Inherits InternalPacketFixedSizeTransmissionHeader.

Collaboration diagram for InternalPacket:
Collaboration graph
[legend]

List of all members.

Public Types

enum  AllocationScheme { NORMAL, REF_COUNTED }
 

How to alloc and delete the data member.

More...

Public Attributes

MessageNumberType messageInternalOrder
 Identifies the order in which this number was sent. Used locally.
bool messageNumberAssigned
RakNetTimeUS creationTime
 Was this packet number used this update to track windowing drops or increases? Each packet number is only used once per update.
RakNetTimeUS nextActionTime
 The resendNext time to take action on this packet.
BitSize_t headerLength
unsigned char * data
 Buffer is a pointer to the actual data, assuming this packet has data at all.
enum
InternalPacket::AllocationScheme 
allocationScheme
 How to alloc and delete the data member.
InternalPacketRefCountedDatarefCountedData
unsigned char timesSent
 How many attempts we made at sending this message.
PacketPriority priority
 The priority level of this packet.
uint32_t sendReceiptSerial
 If the reliability type requires a receipt, then return this number with it.
InternalPacketresendPrev
InternalPacketresendNext
InternalPacketunreliablePrev
InternalPacketunreliableNext

Detailed Description

Holds a user message, and related information Don't use a constructor or destructor, due to the memory pool I am using

Definition at line 73 of file InternalPacket.h.


Member Enumeration Documentation

How to alloc and delete the data member.

Enumerator:
NORMAL 

Data is allocated using rakMalloc. Just free it.

REF_COUNTED 

data points to a larger block of data, where the larger block is reference counted. internalPacketRefCountedData is used in this case

Definition at line 92 of file InternalPacket.h.


Member Data Documentation

How to alloc and delete the data member.

Was this packet number used this update to track windowing drops or increases? Each packet number is only used once per update.

When this packet was created

Definition at line 84 of file InternalPacket.h.

unsigned char* InternalPacket::data

Buffer is a pointer to the actual data, assuming this packet has data at all.

Definition at line 90 of file InternalPacket.h.

Definition at line 88 of file InternalPacket.h.

Identifies the order in which this number was sent. Used locally.

Definition at line 76 of file InternalPacket.h.

Has this message number been assigned yet? We don't assign until the message is actually sent. This fixes a bug where pre-determining message numbers and then sending a message on a different channel creates a huge gap. This causes performance problems and causes those messages to timeout.

Definition at line 80 of file InternalPacket.h.

The resendNext time to take action on this packet.

Definition at line 86 of file InternalPacket.h.

The priority level of this packet.

Definition at line 104 of file InternalPacket.h.

Definition at line 100 of file InternalPacket.h.

Definition at line 110 of file InternalPacket.h.

Definition at line 110 of file InternalPacket.h.

If the reliability type requires a receipt, then return this number with it.

Definition at line 106 of file InternalPacket.h.

How many attempts we made at sending this message.

Definition at line 102 of file InternalPacket.h.

Definition at line 110 of file InternalPacket.h.

Definition at line 110 of file InternalPacket.h.


The documentation for this struct was generated from the following file: