root/trunk/raknet/raknet/packetenumerations.d

Revision 23, 7.1 kB (checked in by clayasaurus, 6 years ago)

added raknet linux bindings to project

Line 
1 module raknet.packetenumerations;
2
3
4 enum {
5    //
6    // RESERVED TYPES - DO NOT CHANGE THESE
7    //
8    // Ignore these:
9    ID_PING = 0,   //!< 0: Ping (internal use only)
10    ID_PING_OPEN_CONNECTIONS,   //!< 1: Only reply to the unconnected ping if we have open connections
11    ID_REQUEST_STATIC_DATA,   //!< 2: Someone asked for our static data (internal use only)
12    ID_CONNECTION_REQUEST,   //!< 3: Asking for a new connection (internal use only)
13    ID_SECURED_CONNECTION_RESPONSE,   //!< 4: Connecting to a secured server/peer
14    ID_SECURED_CONNECTION_CONFIRMATION,   //!< 5: Connecting to a secured server/peer
15    ID_RPC,   //!< 6: Remote procedure call (internal use only)
16    ID_BROADCAST_PINGS,   //!< 7: Server / Client only - The server is broadcasting the pings of all players in the game (internal use only)
17    ID_SET_RANDOM_NUMBER_SEED,   //!< 8: Server / Client only - The server is broadcasting a random number seed (internal use only)
18    ID_RPC_WITH_TIMESTAMP,   //!< 9: Same as RPC, but treat the first 4 bytes as a timestamp
19    //Handle these below.  Possible recipients in [...]
20    ID_PONG,   //!< [CLIENT|PEER] 10: Pong.  Returned if we ping a system we are not connected so.  First byte is ID_PONG, second 4 bytes is the ping, following bytes is system specific enumeration data.
21    ID_RSA_PUBLIC_KEY_MISMATCH,   //!< [CLIENT|PEER] 11: We preset an RSA public key which does not match what the system we connected to is using.
22    ID_REMOTE_DISCONNECTION_NOTIFICATION,   //!< [CLIENT] 12: In a client/server environment, a client other than ourselves has disconnected gracefully.  Packet::playerID is modified to reflect the playerID of this client.
23    ID_REMOTE_CONNECTION_LOST,   //!< [CLIENT] 13: 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.
24    ID_REMOTE_NEW_INCOMING_CONNECTION,   //!< [CLIENT] 14: In a client/server environment, a client other than ourselves has connected.  Packet::playerID is modified to reflect the playerID of this client.
25    ID_REMOTE_EXISTING_CONNECTION,   //!< [CLIENT] 15: 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.
26    ID_REMOTE_STATIC_DATA,   //!< [CLIENT] - 16: Got the data for another client
27    ID_CONNECTION_BANNED,   //!< [PEER|CLIENT] 17: We are banned from the system we attempted to connect to.
28    ID_CONNECTION_REQUEST_ACCEPTED,   //!< [PEER|CLIENT] 18: In a client/server environment, our connection request to the server has been accepted.
29    ID_NEW_INCOMING_CONNECTION,   //!< [PEER|SERVER] 19: A remote system has successfully connected.
30    ID_NO_FREE_INCOMING_CONNECTIONS,   //!< [PEER|CLIENT] 20: The system we attempted to connect to is not accepting new connections.
31    ID_DISCONNECTION_NOTIFICATION,   //!< [PEER|SERVER|CLIENT] 21: The system specified in Packet::playerID has disconnected from us.  For the client, this would mean the server has shutdown.
32    ID_CONNECTION_LOST,   //!< [PEER|SERVER|CLIENT] 22: Reliable packets cannot be delivered to the system specifed in Packet::playerID.  The connection to that system has been closed.
33    ID_TIMESTAMP,   //!< [PEER|SERVER|CLIENT] 23: 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.
34    ID_RECEIVED_STATIC_DATA,   //!< [PEER|SERVER|CLIENT] 24: 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.
35    ID_INVALID_PASSWORD,   //!< [PEER|CLIENT] 25: The remote system is using a password and has refused our connection because we did not set the correct password.
36    ID_MODIFIED_PACKET,   //!< [PEER|SERVER|CLIENT] 26: A packet has been tampered with in transit.  The sender is contained in Packet::playerID.
37    ID_REMOTE_PORT_REFUSED,   //!< [PEER|SERVER|CLIENT] 27: The remote host is not accepting data on this port.  This only comes up when connecting to yourself on the same computer and there is no bound socket on that port.
38    ID_VOICE_PACKET,   //!< [PEER] 28: This packet contains voice data.  You should pass it to the RakVoice system.
39    ID_UPDATE_DISTRIBUTED_NETWORK_OBJECT,   //!< [CLIENT|SERVER] 29: Indicates creation or update of a distributed network object.  Pass to DistributedNetworkObjectManager::Instance()->HandleDistributedNetworkObjectPacket
40    ID_DISTRIBUTED_NETWORK_OBJECT_CREATION_ACCEPTED,   //!< [CLIENT] 30: Client creation of a distributed network object was accepted.  Pass to DistributedNetworkObjectManager::Instance()->HandleDistributedNetworkObjectPacketCreationAccepted
41    ID_DISTRIBUTED_NETWORK_OBJECT_CREATION_REJECTED,   //!< [CLIENT] 31: Client creation of a distributed network object was rejected.  Pass to DistributedNetworkObjectManager::Instance()->HandleDistributedNetworkObjectPacketCreationRejected
42    ID_AUTOPATCHER_REQUEST_FILE_LIST,   //!< [PEER|SERVER|CLIENT] 32: Request for a list of downloadable files. Pass to Autopatcher::SendDownloadableFileList
43    ID_AUTOPATCHER_FILE_LIST,   //!< [PEER|SERVER|CLIENT] 33: Got a list of downloadable files. Pass to Autopatcher::OnAutopatcherFileList
44    ID_AUTOPATCHER_REQUEST_FILES,   //!< [PEER|SERVER|CLIENT] 34: Request for a particular set of downloadable files. Pass to Autopatcher::OnAutopatcherRequestFiles
45    ID_AUTOPATCHER_SET_DOWNLOAD_LIST,   //!< [PEER|SERVER|CLIENT] 35: Set the list of files that were approved for download and are incoming. Pass to Autopatcher::OnAutopatcherSetDownloadList
46    ID_AUTOPATCHER_WRITE_FILE,   //!< [PEER|SERVER|CLIENT] 36: Got a file that we requested for download.  Pass to Autopatcher::OnAutopatcherWriteFile
47    ID_QUERY_MASTER_SERVER,   //!< [MASTERSERVER] 37: Request to the master server for the list of servers that contain at least one of the specified keys
48    ID_MASTER_SERVER_DELIST_SERVER,   //!< [MASTERSERVER] 38: Remove a game server from the master server.
49    ID_MASTER_SERVER_UPDATE_SERVER,   //!< [MASTERSERVER|MASTERCLIENT] 39: Add or update the information for a server.
50    ID_MASTER_SERVER_SET_SERVER,   //!< [MASTERSERVER|MASTERCLIENT] 40: Add or set the information for a server.
51    ID_RELAYED_CONNECTION_NOTIFICATION,   //!< [MASTERSERVER|MASTERCLIENT] 41: This message indicates a game client is connecting to a game server, and is relayed through the master server.
52    ID_ADVERTISE_SYSTEM,   //!< [PEER|SERVER|CLIENT] 42: Inform a remote system of our IP/Port.
53    ID_RESERVED5,   //!< For future versions
54    ID_RESERVED6,   //!< For future versions
55    ID_RESERVED7,   //!< For future versions
56    ID_RESERVED8,   //!< For future versions
57    ID_RESERVED9,   //!< For future versions
58    //-------------------------------------------------------------------------------------------------------------
59        
60        
61    //
62    // YOUR TYPES HERE!
63    // WARNING - By default it is assumed that the packet identifier is one byte (unsigned char)
64    // In the unlikely event that you need more than 256 types, including the built-in types, then you'll need
65    // to request a special edition with larger identifiers, or change it yourself
66    //
67 }
Note: See TracBrowser for help on using the browser.