mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Updated RaknetLib.lib to version 3.4
Added all raknet headers for full raknet support Added Testclass "TestCB.cpp" which is a test implementation for raknet plugin "File List Transfer". We will use this plugin for file transfer in multiplayer git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2638 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
/// license found at
|
||||
/// http://creativecommons.org/licenses/by-nc/2.5/
|
||||
/// Single application licensees are subject to the license found at
|
||||
/// http://www.rakkarsoft.com/SingleApplicationLicense.html
|
||||
/// http://www.jenkinssoftware.com/SingleApplicationLicense.html
|
||||
/// Custom license users are subject to the terms therein.
|
||||
/// GPL license users are subject to the GNU General Public
|
||||
/// License as published by the Free
|
||||
@@ -21,10 +21,19 @@
|
||||
/// These enumerations are used to describe when packets are delivered.
|
||||
enum PacketPriority
|
||||
{
|
||||
SYSTEM_PRIORITY, /// \internal Used by RakNet to send above-high priority messages.
|
||||
HIGH_PRIORITY, /// High priority messages are send before medium priority messages.
|
||||
MEDIUM_PRIORITY, /// Medium priority messages are send before low priority messages.
|
||||
LOW_PRIORITY, /// Low priority messages are only sent when no other messages are waiting.
|
||||
/// \internal Used by RakNet to send above-high priority messages.
|
||||
SYSTEM_PRIORITY,
|
||||
|
||||
/// High priority messages are send before medium priority messages.
|
||||
HIGH_PRIORITY,
|
||||
|
||||
/// Medium priority messages are send before low priority messages.
|
||||
MEDIUM_PRIORITY,
|
||||
|
||||
/// Low priority messages are only sent when no other messages are waiting.
|
||||
LOW_PRIORITY,
|
||||
|
||||
/// \internal
|
||||
NUMBER_OF_PRIORITIES
|
||||
};
|
||||
|
||||
@@ -32,11 +41,23 @@ enum PacketPriority
|
||||
/// \note Note to self: I write this with 3 bits in the stream. If I add more remember to change that
|
||||
enum PacketReliability
|
||||
{
|
||||
UNRELIABLE, /// Same as regular UDP, except that it will also discard duplicate datagrams. RakNet adds (6 to 17) + 21 bits of overhead, 16 of which is used to detect duplicate packets and 6 to 17 of which is used for message length.
|
||||
UNRELIABLE_SEQUENCED, /// Regular UDP with a sequence counter. Out of order messages will be discarded. This adds an additional 13 bits on top what is used for UNRELIABLE.
|
||||
RELIABLE, /// The message is sent reliably, but not necessarily in any order. Same overhead as UNRELIABLE.
|
||||
RELIABLE_ORDERED, /// This message is reliable and will arrive in the order you sent it. Messages will be delayed while waiting for out of order messages. Same overhead as UNRELIABLE_SEQUENCED.
|
||||
RELIABLE_SEQUENCED /// This message is reliable and will arrive in the sequence you sent it. Out or order messages will be dropped. Same overhead as UNRELIABLE_SEQUENCED.
|
||||
/// Same as regular UDP, except that it will also discard duplicate datagrams. RakNet adds (6 to 17) + 21 bits of overhead, 16 of which is used to detect duplicate packets and 6 to 17 of which is used for message length.
|
||||
UNRELIABLE,
|
||||
|
||||
/// Regular UDP with a sequence counter. Out of order messages will be discarded. This adds an additional 13 bits on top what is used for UNRELIABLE.
|
||||
UNRELIABLE_SEQUENCED,
|
||||
|
||||
/// The message is sent reliably, but not necessarily in any order. Same overhead as UNRELIABLE.
|
||||
RELIABLE,
|
||||
|
||||
/// This message is reliable and will arrive in the order you sent it. Messages will be delayed while waiting for out of order messages. Same overhead as UNRELIABLE_SEQUENCED.
|
||||
RELIABLE_ORDERED,
|
||||
|
||||
/// This message is reliable and will arrive in the sequence you sent it. Out or order messages will be dropped. Same overhead as UNRELIABLE_SEQUENCED.
|
||||
RELIABLE_SEQUENCED,
|
||||
|
||||
/// \internal
|
||||
NUMBER_OF_RELIABILITIES
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user