PacketEnumerations.h File Reference

All the packet identifiers used by RakNet. Packet identifiers comprise the first byte of any message. More...


Enumerations

enum  {
  ID_INTERNAL_PING, ID_PING, ID_PING_OPEN_CONNECTIONS, ID_CONNECTED_PONG,
  ID_REQUEST_STATIC_DATA, ID_CONNECTION_REQUEST, ID_SECURED_CONNECTION_RESPONSE, ID_SECURED_CONNECTION_CONFIRMATION,
  ID_RPC, ID_RPC_REPLY, ID_BROADCAST_PINGS, ID_SET_RANDOM_NUMBER_SEED,
  ID_RPC_MAPPING, ID_DETECT_LOST_CONNECTIONS, ID_OPEN_CONNECTION_REQUEST, ID_OPEN_CONNECTION_REPLY,
  ID_CONNECTION_REQUEST_ACCEPTED, ID_CONNECTION_ATTEMPT_FAILED, ID_NEW_INCOMING_CONNECTION, ID_NO_FREE_INCOMING_CONNECTIONS,
  ID_DISCONNECTION_NOTIFICATION, ID_CONNECTION_LOST, ID_RSA_PUBLIC_KEY_MISMATCH, ID_CONNECTION_BANNED,
  ID_INVALID_PASSWORD, ID_MODIFIED_PACKET, ID_TIMESTAMP, ID_PONG,
  ID_RECEIVED_STATIC_DATA, ID_REMOTE_DISCONNECTION_NOTIFICATION, ID_REMOTE_CONNECTION_LOST, ID_REMOTE_NEW_INCOMING_CONNECTION,
  ID_REMOTE_EXISTING_CONNECTION, ID_REMOTE_STATIC_DATA, ID_VOICE_PACKET, ID_AUTOPATCHER_REQUEST_FILE_LIST,
  ID_AUTOPATCHER_FILE_LIST, ID_AUTOPATCHER_REQUEST_FILES, ID_AUTOPATCHER_SET_DOWNLOAD_LIST, ID_AUTOPATCHER_WRITE_FILE,
  ID_QUERY_MASTER_SERVER, ID_MASTER_SERVER_DELIST_SERVER, ID_MASTER_SERVER_UPDATE_SERVER, ID_MASTER_SERVER_SET_SERVER,
  ID_RELAYED_CONNECTION_NOTIFICATION, ID_ADVERTISE_SYSTEM, ID_FULLY_CONNECTED_MESH_JOIN_RESPONSE, ID_FULLY_CONNECTED_MESH_JOIN_REQUEST,
  ID_REPLICATOR_DATA_PUSH_OBJECT, ID_REPLICATOR_DATA_SEND_MEMORY, ID_REPLICATOR_DATA_SEND_OBJECT_SCOPE, ID_REPLICATOR_DATA_STOP,
  ID_REPLICATOR_OBJECT_CREATION_REQUEST, ID_REPLICATOR_OBJECT_CREATION_REQUEST_RESPONSE, ID_REPLICATOR_STR_MAP_INDEX, ID_REPLICATOR_PUSH_COMPLETE,
  ID_TRANSPORT_STRING, ID_REPLICA_MANAGER_CONSTRUCTION, ID_REPLICA_MANAGER_DESTRUCTION, ID_REPLICA_MANAGER_SCOPE_CHANGE,
  ID_REPLICA_MANAGER_SERIALIZE, ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE, ID_RESERVED9, ID_USER_PACKET_ENUM
}


Detailed Description

All the packet identifiers used by RakNet. Packet identifiers comprise the first byte of any message.

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the 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 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 Software Foundation; either version 2 of the License, or (at your option) any later version.


Enumeration Type Documentation

anonymous enum
 

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.





/// 

Note:
All these enumerations should be casted to (unsigned char) before writing them to RakNet::BitStream
Enumerator:
ID_INTERNAL_PING  0: Ping from a connected system. Update timestamps (internal use only)
ID_PING  1: Ping from an unconnected system. Reply but do not update timestamps. (internal use only)
ID_PING_OPEN_CONNECTIONS  2: Ping from an unconnected system. Only reply if we have open connections. Do not update timestamps. (internal use only)
ID_CONNECTED_PONG  3: Pong from a connected system. Update timestamps (internal use only)
ID_REQUEST_STATIC_DATA  4: Someone asked for our static data (internal use only)
ID_CONNECTION_REQUEST  5: Asking for a new connection (internal use only)
ID_SECURED_CONNECTION_RESPONSE  6: Connecting to a secured server/peer
ID_SECURED_CONNECTION_CONFIRMATION  7: Connecting to a secured server/peer
ID_RPC  8: Remote procedure call (internal use only)
ID_RPC_REPLY  9: Remote procedure call reply, for RPCs that return data (internal use only)
ID_BROADCAST_PINGS  10: Server / Client only - The server is broadcasting the pings of all players in the game (internal use only)
ID_SET_RANDOM_NUMBER_SEED  11: Server / Client only - The server is broadcasting a random number seed (internal use only)
ID_RPC_MAPPING  12: Packet that tells us the packet contains an integer ID to name mapping for the remote system
ID_DETECT_LOST_CONNECTIONS  13: A reliable packet to detect lost connections
ID_OPEN_CONNECTION_REQUEST  14: Guaranteed offline message so we know when to reset and start a new connection
ID_OPEN_CONNECTION_REPLY  15: Guaranteed offline message response so we know when to reset and start a new connection
ID_CONNECTION_REQUEST_ACCEPTED  [PEER|CLIENT] 16: In a client/server environment, our connection request to the server has been accepted.
ID_CONNECTION_ATTEMPT_FAILED  [PEER|SERVER|CLIENT] 17: Sent to the player when a connection request cannot be completed due to inability to connect
ID_NEW_INCOMING_CONNECTION  [PEER|SERVER] 18: A remote system has successfully connected.
ID_NO_FREE_INCOMING_CONNECTIONS  [PEER|CLIENT] 19: The system we attempted to connect to is not accepting new connections.
ID_DISCONNECTION_NOTIFICATION  [PEER|SERVER|CLIENT] 20: The system specified in Packet::playerID has disconnected from us. For the client, this would mean the server has shutdown.
ID_CONNECTION_LOST  [PEER|SERVER|CLIENT] 21: Reliable packets cannot be delivered to the system specifed in Packet::playerID. The connection to that system has been closed.
ID_RSA_PUBLIC_KEY_MISMATCH  [CLIENT|PEER] 22: We preset an RSA public key which does not match what the system we connected to is using.
ID_CONNECTION_BANNED  [PEER|CLIENT] 23: We are banned from the system we attempted to connect to.
ID_INVALID_PASSWORD  [PEER|CLIENT] 24: The remote system is using a password and has refused our connection because we did not set the correct password.
ID_MODIFIED_PACKET  [PEER|SERVER|CLIENT] 25: A packet has been tampered with in transit. The sender is contained in Packet::playerID.
ID_TIMESTAMP  [PEER|SERVER|CLIENT] 26: The four bytes following this byte represent an unsigned int which is automatically modified by the difference in system times between the sender and the recipient. Requires that you call StartOccasionalPing.
ID_PONG  [CLIENT|PEER] 27: Pong from an unconnected system. First byte is ID_PONG, second sizeof(RakNetTime) bytes is the ping, following bytes is system specific enumeration data.
ID_RECEIVED_STATIC_DATA  [PEER|SERVER|CLIENT] 28: We got a bitstream containing static data. You can now read this data. This packet is transmitted automatically on connections, and can also be manually sent.
ID_REMOTE_DISCONNECTION_NOTIFICATION  [CLIENT] 29: In a client/server environment, a client other than ourselves has disconnected gracefully. Packet::playerID is modified to reflect the playerID of this client.
ID_REMOTE_CONNECTION_LOST  [CLIENT] 30: In a client/server environment, a client other than ourselves has been forcefully dropped. Packet::playerID is modified to reflect the playerID of this client.
ID_REMOTE_NEW_INCOMING_CONNECTION  [CLIENT] 31: In a client/server environment, a client other than ourselves has connected. Packet::playerID is modified to reflect the playerID of this client.
ID_REMOTE_EXISTING_CONNECTION  [CLIENT] 32: On our initial connection to the server, we are told of every other client in the game. Packet::playerID is modified to reflect the playerID of this client.
ID_REMOTE_STATIC_DATA  [CLIENT] - 33: Got the data for another client
ID_VOICE_PACKET  [PEER] 34: This packet contains voice data. You should pass it to the RakVoice system.
ID_AUTOPATCHER_REQUEST_FILE_LIST  [PEER|SERVER|CLIENT] 35: Request for a list of downloadable files. Pass to Autopatcher::SendDownloadableFileList
ID_AUTOPATCHER_FILE_LIST  [PEER|SERVER|CLIENT] 36: Got a list of downloadable files. Pass to Autopatcher::OnAutopatcherFileList
ID_AUTOPATCHER_REQUEST_FILES  [PEER|SERVER|CLIENT] 37: Request for a particular set of downloadable files. Pass to Autopatcher::OnAutopatcherRequestFiles
ID_AUTOPATCHER_SET_DOWNLOAD_LIST  [PEER|SERVER|CLIENT] 38: Set the list of files that were approved for download and are incoming. Pass to Autopatcher::OnAutopatcherSetDownloadList
ID_AUTOPATCHER_WRITE_FILE  [PEER|SERVER|CLIENT] 39: Got a file that we requested for download. Pass to Autopatcher::OnAutopatcherWriteFile
ID_QUERY_MASTER_SERVER  [MASTERSERVER] 40: Request to the master server for the list of servers that contain at least one of the specified keys
ID_MASTER_SERVER_DELIST_SERVER  [MASTERSERVER] 41: Remove a game server from the master server.
ID_MASTER_SERVER_UPDATE_SERVER  [MASTERSERVER|MASTERCLIENT] 42: Add or update the information for a server.
ID_MASTER_SERVER_SET_SERVER  [MASTERSERVER|MASTERCLIENT] 43: Add or set the information for a server.
ID_RELAYED_CONNECTION_NOTIFICATION  [MASTERSERVER|MASTERCLIENT] 44: This message indicates a game client is connecting to a game server, and is relayed through the master server.
ID_ADVERTISE_SYSTEM  [PEER|SERVER|CLIENT] 45: Inform a remote system of our IP/Port.
ID_FULLY_CONNECTED_MESH_JOIN_RESPONSE  [PEER via PluginInterface] 46: Used by FullyConnectedMesh packet handler to automatically connect to other peers and form a fully connected mesh topology
ID_FULLY_CONNECTED_MESH_JOIN_REQUEST  [PEER] 47: Used by FullyConnectedMesh packet handler to automatically connect to other peers and form a fully connected mesh topology
ID_REPLICATOR_PUSH_COMPLETE  55 - Depreciated
ID_TRANSPORT_STRING  [RakNetTransport] 56
ID_REPLICA_MANAGER_CONSTRUCTION  [ReplicaManager] 57
ID_REPLICA_MANAGER_DESTRUCTION  [ReplicaManager] 58
ID_REPLICA_MANAGER_SCOPE_CHANGE  [ReplicaManager] 59
ID_REPLICA_MANAGER_SERIALIZE  [ReplicaManager] 60
ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE  [ReplicaManager] 61
ID_RESERVED9  Depreciated.


Generated on Wed May 3 09:11:54 2006 for RakNet by  doxygen 1.4.6-NO