Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Message Identifier

You should not edit the file PacketEnumerations.h as it is a part of RakNet static library To define your own message id, define an enum following the code example that follows.

 enum {
   ID_MYPROJECT_MSG_1 = ID_RESERVERD_9 + 1, 
   ID_MYPROJECT_MSG_2, 
    ... 
 };

Note:
RakNet define message ID as a 1 byte information. If you require more than 256 message IDs do not reuse the function Multiplayer::GetPacketIdentifier and replace the existing one by a correct version of this function the version. In this case you can integrate in the code of your project the file Multiplayer.h and edit this file to fits your needs.

Generated on Mon May 30 17:45:43 2005 for raknet by  doxygen 1.4.2