| 1 |
/* -*- mode: c++; c-file-style: raknet; tab-always-indent: nil; -*- */ |
|---|
| 2 |
/** |
|---|
| 3 |
* @file |
|---|
| 4 |
* @brief Defines Priority and Reliability Constants |
|---|
| 5 |
* |
|---|
| 6 |
* This file is part of RakNet Copyright 2003, 2004 |
|---|
| 7 |
* Rakkarsoft LLC and Kevin Jenkins. |
|---|
| 8 |
* |
|---|
| 9 |
* Usage of Raknet is subject to the appropriate licence agreement. |
|---|
| 10 |
* "Shareware" Licensees with Rakkarsoft LLC are subject to the |
|---|
| 11 |
* shareware license found at |
|---|
| 12 |
* http://www.rakkarsoft.com/shareWareLicense.html which you agreed to |
|---|
| 13 |
* upon purchase of a "Shareware license" "Commercial" Licensees with |
|---|
| 14 |
* Rakkarsoft LLC are subject to the commercial license found at |
|---|
| 15 |
* http://www.rakkarsoft.com/sourceCodeLicense.html which you agreed |
|---|
| 16 |
* to upon purchase of a "Commercial license" All other users are |
|---|
| 17 |
* subject to the GNU General Public License as published by the Free |
|---|
| 18 |
* Software Foundation; either version 2 of the License, or (at your |
|---|
| 19 |
* option) any later version. |
|---|
| 20 |
* |
|---|
| 21 |
* Refer to the appropriate license agreement for distribution, |
|---|
| 22 |
* modification, and warranty rights. |
|---|
| 23 |
*/ |
|---|
| 24 |
|
|---|
| 25 |
module raknet.packetpriority; |
|---|
| 26 |
|
|---|
| 27 |
/** |
|---|
| 28 |
* This enum contains all level of priority that can be applyed to a packet. |
|---|
| 29 |
*/ |
|---|
| 30 |
enum PacketPriority |
|---|
| 31 |
{ |
|---|
| 32 |
SYSTEM_PRIORITY=0, //!< System priority is for system related messaging. Don't use it. |
|---|
| 33 |
HIGH_PRIORITY, //!< Those message are handle first |
|---|
| 34 |
MEDIUM_PRIORITY, //!< Message relativly important |
|---|
| 35 |
LOW_PRIORITY, //!< Not critical information |
|---|
| 36 |
NUMBER_OF_PRIORITIES |
|---|
| 37 |
} |
|---|
| 38 |
|
|---|
| 39 |
/** |
|---|
| 40 |
* This define the reliability behaviour to apply to a packet |
|---|
| 41 |
* |
|---|
| 42 |
* @note Note to self: I write this with 3 bits in the stream! |
|---|
| 43 |
* |
|---|
| 44 |
*/ |
|---|
| 45 |
enum PacketReliability |
|---|
| 46 |
{ |
|---|
| 47 |
UNRELIABLE=0, //!< Send packet not reliable and not sequenced |
|---|
| 48 |
UNRELIABLE_SEQUENCED, //!< Send packet not reliable but sequenced |
|---|
| 49 |
RELIABLE, //!< Send packet reliable |
|---|
| 50 |
RELIABLE_ORDERED, //!< Send packet reliable respecting ordering |
|---|
| 51 |
RELIABLE_SEQUENCED //!< Send packet reliable respecting sequenced |
|---|
| 52 |
} |
|---|