- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# MessageIdentifiers.h File Reference

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

## Enumerations
enum | { ID_INTERNAL_PING, ID_PING, ID_PING_OPEN_CONNECTIONS, ID_CONNECTED_PONG, ID_CONNECTION_REQUEST, ID_SECURED_CONNECTION_RESPONSE, ID_SECURED_CONNECTION_CONFIRMATION, ID_RPC_MAPPING, ID_DETECT_LOST_CONNECTIONS, ID_OPEN_CONNECTION_REQUEST, ID_OPEN_CONNECTION_REPLY, ID_RPC, ID_RPC_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_ADVERTISE_SYSTEM, ID_REMOTE_DISCONNECTION_NOTIFICATION, ID_REMOTE_CONNECTION_LOST, ID_REMOTE_NEW_INCOMING_CONNECTION, ID_FILE_LIST_TRANSFER_HEADER, ID_FILE_LIST_TRANSFER_FILE, ID_DDT_DOWNLOAD_REQUEST, 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_CONNECTION_GRAPH_REQUEST, ID_CONNECTION_GRAPH_REPLY, ID_CONNECTION_GRAPH_UPDATE, ID_CONNECTION_GRAPH_NEW_CONNECTION, ID_CONNECTION_GRAPH_CONNECTION_LOST, ID_CONNECTION_GRAPH_DISCONNECTION_NOTIFICATION, ID_ROUTE_AND_MULTICAST, ID_RAKVOICE_OPEN_CHANNEL_REQUEST, ID_RAKVOICE_OPEN_CHANNEL_REPLY, ID_RAKVOICE_CLOSE_CHANNEL, ID_RAKVOICE_DATA, ID_AUTOPATCHER_GET_CHANGELIST_SINCE_DATE, ID_AUTOPATCHER_CREATION_LIST, ID_AUTOPATCHER_DELETION_LIST, ID_AUTOPATCHER_GET_PATCH, ID_AUTOPATCHER_PATCH_LIST, ID_AUTOPATCHER_REPOSITORY_FATAL_ERROR, ID_AUTOPATCHER_FINISHED, ID_AUTOPATCHER_RESTART_APPLICATION, ID_NAT_PUNCHTHROUGH_REQUEST, ID_NAT_TARGET_NOT_CONNECTED, ID_NAT_TARGET_CONNECTION_LOST, ID_NAT_CONNECT_AT_TIME, ID_NAT_SEND_OFFLINE_MESSAGE_AT_TIME, ID_DATABASE_QUERY_REQUEST, ID_DATABASE_UPDATE_ROW, ID_DATABASE_REMOVE_ROW, ID_DATABASE_QUERY_REPLY, ID_DATABASE_UNKNOWN_TABLE, ID_DATABASE_INCORRECT_PASSWORD, ID_USER_PACKET_ENUM }

## Detailed Description

All the message identifiers used by RakNet. Message 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 MessageIdentifiers.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 | These types are never returned to the user. Ping from a connected system. Update timestamps (internal use only)
  ID_PING | Ping from an unconnected system. Reply but do not update timestamps. (internal use only).
  ID_PING_OPEN_CONNECTIONS | Ping from an unconnected system. Only reply if we have open connections. Do not update timestamps. (internal use only).
  ID_CONNECTED_PONG | Pong from a connected system. Update timestamps (internal use only).
  ID_CONNECTION_REQUEST | Asking for a new connection (internal use only).
  ID_SECURED_CONNECTION_RESPONSE | Connecting to a secured server/peer.
  ID_SECURED_CONNECTION_CONFIRMATION | Connecting to a secured server/peer.
  ID_RPC_MAPPING | Packet that tells us the packet contains an integer ID to name mapping for the remote system.
  ID_DETECT_LOST_CONNECTIONS | A reliable packet to detect lost connections.
  ID_OPEN_CONNECTION_REQUEST | Offline message so we know when to reset and start a new connection.
  ID_OPEN_CONNECTION_REPLY | Offline message response so we know when to reset and start a new connection.
  ID_RPC | Remote procedure call (internal use only).
  ID_RPC_REPLY | Remote procedure call reply, for RPCs that return data (internal use only).
  ID_CONNECTION_REQUEST_ACCEPTED | RakPeer - In a client/server environment, our connection request to the server has been accepted.
  ID_CONNECTION_ATTEMPT_FAILED | RakPeer - Sent to the player when a connection request cannot be completed due to inability to connect.
  ID_NEW_INCOMING_CONNECTION | RakPeer - A remote system has successfully connected.
  ID_NO_FREE_INCOMING_CONNECTIONS | RakPeer - The system we attempted to connect to is not accepting new connections.
  ID_DISCONNECTION_NOTIFICATION | RakPeer - The system specified in Packet::systemAddress has disconnected from us. For the client, this would mean the server has shutdown.
  ID_CONNECTION_LOST | RakPeer - Reliable packets cannot be delivered to the system specifed in Packet::systemAddress. The connection to that system has been closed.
  ID_RSA_PUBLIC_KEY_MISMATCH | RakPeer - We preset an RSA public key which does not match what the system we connected to is using.
  ID_CONNECTION_BANNED | RakPeer - We are banned from the system we attempted to connect to.
  ID_INVALID_PASSWORD | RakPeer - The remote system is using a password and has refused our connection because we did not set the correct password.
  ID_MODIFIED_PACKET | RakPeer - A packet has been tampered with in transit. The sender is contained in Packet::systemAddress.
  ID_TIMESTAMP | RakPeer - 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 | RakPeer - 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_ADVERTISE_SYSTEM | RakPeer - Inform a remote system of our IP/Port, plus some offline data.
  ID_REMOTE_DISCONNECTION_NOTIFICATION | ConnectionGraph plugin - In a client/server environment, a client other than ourselves has disconnected gracefully. Packet::systemAddress is modified to reflect the systemAddress of this client.
  ID_REMOTE_CONNECTION_LOST | ConnectionGraph plugin - In a client/server environment, a client other than ourselves has been forcefully dropped. Packet::systemAddress is modified to reflect the systemAddress of this client.
  ID_REMOTE_NEW_INCOMING_CONNECTION | ConnectionGraph plugin - In a client/server environment, a client other than ourselves has connected. Packet::systemAddress is modified to reflect the systemAddress of this client.
  ID_FILE_LIST_TRANSFER_HEADER | FileListTransfer plugin - Setup data.
  ID_FILE_LIST_TRANSFER_FILE | FileListTransfer plugin - A file.
  ID_DDT_DOWNLOAD_REQUEST | DirectoryDeltaTransfer plugin - Request from a remote system for a download of a directory.
  ID_TRANSPORT_STRING | RakNetTransport plugin - Transport provider message, used for remote console.
  ID_REPLICA_MANAGER_CONSTRUCTION | ReplicaManager plugin - Create an object.
  ID_REPLICA_MANAGER_DESTRUCTION | ReplicaManager plugin - Destroy an object.
  ID_REPLICA_MANAGER_SCOPE_CHANGE | ReplicaManager plugin - Changed scope of an object.
  ID_REPLICA_MANAGER_SERIALIZE | ReplicaManager plugin - Serialized data of an object.
  ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE | ReplicaManager plugin - Finished downloading all serialized objects.
  ID_CONNECTION_GRAPH_REQUEST | ConnectionGraph plugin - Request the connection graph from another system.
  ID_CONNECTION_GRAPH_REPLY | ConnectionGraph plugin - Reply to a connection graph download request.
  ID_CONNECTION_GRAPH_UPDATE | ConnectionGraph plugin - Update edges / nodes for a system with a connection graph.
  ID_CONNECTION_GRAPH_NEW_CONNECTION | ConnectionGraph plugin - Add a new connection to a connection graph.
  ID_CONNECTION_GRAPH_CONNECTION_LOST | ConnectionGraph plugin - Remove a connection from a connection graph - connection was abruptly lost.
  ID_CONNECTION_GRAPH_DISCONNECTION_NOTIFICATION | ConnectionGraph plugin - Remove a connection from a connection graph - connection was gracefully lost.
  ID_ROUTE_AND_MULTICAST | Router plugin - route a message through another system.
  ID_RAKVOICE_OPEN_CHANNEL_REQUEST | RakVoice plugin - Open a communication channel.
  ID_RAKVOICE_OPEN_CHANNEL_REPLY | RakVoice plugin - Communication channel accepted.
  ID_RAKVOICE_CLOSE_CHANNEL | RakVoice plugin - Close a communication channel.
  ID_RAKVOICE_DATA | RakVoice plugin - Voice data.
  ID_AUTOPATCHER_GET_CHANGELIST_SINCE_DATE | Autopatcher plugin - Get a list of files that have changed since a certain date.
  ID_AUTOPATCHER_CREATION_LIST | Autopatcher plugin - A list of files to create.
  ID_AUTOPATCHER_DELETION_LIST | Autopatcher plugin - A list of files to delete.
  ID_AUTOPATCHER_GET_PATCH | Autopatcher plugin - A list of files to get patches for.
  ID_AUTOPATCHER_PATCH_LIST | Autopatcher plugin - A list of patches for a list of files.
  ID_AUTOPATCHER_REPOSITORY_FATAL_ERROR | Autopatcher plugin - Returned to the user: An error from the database repository for the autopatcher.
  ID_AUTOPATCHER_FINISHED | Autopatcher plugin - Finished getting all files from the autopatcher.
  ID_AUTOPATCHER_RESTART_APPLICATION | Autopatcher plugin - Returned to the user: You must restart the application to finish patching.
  ID_NAT_PUNCHTHROUGH_REQUEST | NATPunchthrough plugin - Intermediary got a request to help punch through a nat.
  ID_NAT_TARGET_NOT_CONNECTED | NATPunchthrough plugin - Intermediary cannot complete the request because the target system is not connected.
  ID_NAT_TARGET_CONNECTION_LOST | NATPunchthrough plugin - While attempting to connect, we lost the connection to the target system.
  ID_NAT_CONNECT_AT_TIME | NATPunchthrough plugin - Internal message to connect at a certain time.
  ID_NAT_SEND_OFFLINE_MESSAGE_AT_TIME | NATPunchthrough plugin - Internal message to send a message (to punch through the nat) at a certain time.
  ID_DATABASE_QUERY_REQUEST | LightweightDatabase plugin - Query.
  ID_DATABASE_UPDATE_ROW | LightweightDatabase plugin - Update.
  ID_DATABASE_REMOVE_ROW | LightweightDatabase plugin - Remove.
  ID_DATABASE_QUERY_REPLY | LightweightDatabase plugin - A serialized table. Bytes 1+ contain the table. Pass to TableSerializer::DeserializeTable.
  ID_DATABASE_UNKNOWN_TABLE | LightweightDatabase plugin - Specified table not found.
  ID_DATABASE_INCORRECT_PASSWORD | LightweightDatabase plugin - Incorrect password.