#[repr(u8)]pub enum ID {
Show 83 variants
InternalPing,
Ping,
PingOpenConnections,
ConnectedPong,
ConnectionRequest,
SecuredConnectionResponse,
SecuredConnectionConfirmation,
RPCMapping,
DetectLostConnection,
OpenConnectionRequest,
OpenConnectionReply,
RPC,
RPCReply,
OutOfBandInternal,
ConnectionRequestAccepted,
ConnectionAttemptFailed,
AlreadyConnected,
NewIncomingConnection,
NoFreeIncomingConnections,
DisconnectionNotification,
ConnectionLost,
RSAPublicKeyMismatch,
ConnectionBanned,
InvalidPassword,
ModifiedPacket,
Timestamp,
Pong,
AdvertiseSystem,
RemoteDisconnectNotification,
RemoteConnectionLost,
RemoteNewIncomingConnection,
DownloadProgress,
FileListTransferHeader,
FileListTransferFile,
DDTDownloadRequest,
TransportString,
ReplicaManagerConstruction,
ReplicaManagerDestruction,
ReplicaManagerScopeChange,
ReplicaManagerSerialize,
ReplicaManagerDownloadStarted,
ReplicaManagerDownloadComplete,
ConnectionGraphRequest,
ConnectionGraphReply,
ConnectionGraphUpdate,
ConnectionGraphNewConnection,
ConnectionGraphConnectionLost,
ConnectionGraphDisconnectionNotification,
RouteAndMulticast,
RakVoiceOpenChannelRequest,
RakVoiceOpenChannelReply,
RakVoiceCloseChannel,
RakVoiceData,
AutopatcherGetChangelistSinceDate,
AutopatcherCreatingList,
AutopatcherDeletionList,
AutopatcherGetPatch,
AutopatcherPatchList,
AutopatcherRepositoryFatalError,
AutopatcherFinishedInternal,
AutopatcherFinished,
AutopatcherRestartApplication,
NATPunchthroughRequest,
NATTargetNotConnected,
NATTargetConnectionLost,
NATConnectAtTime,
NATSendOfflineMessageAtTime,
NATInProgress,
DatabaseQueryRequest,
DatabaseUpdateRow,
DatabaseRemoveRow,
DatabaseQueryReply,
DatabaseUnknownTable,
DatabaseIncorrectPassword,
ReadyEventSet,
ReadyEventUnset,
ReadyEventAllSet,
ReadyEventQuery,
LobbyGeneral,
AutoRPCCall,
AutoRPCRemoteIndex,
AutoRPCUnknownRemoteIndex,
RPCRemoteError,
}
Variants§
InternalPing
These types are never returned to the user. Ping from a connected system. Update timestamps (internal use only)
Ping
Ping from an unconnected system. Reply but do not update timestamps. (internal use only)
PingOpenConnections
Ping from an unconnected system. Only reply if we have open connections. Do not update timestamps. (internal use only)
ConnectedPong
Pong from a connected system. Update timestamps (internal use only)
ConnectionRequest
Asking for a new connection (internal use only)
SecuredConnectionResponse
Connecting to a secured server/peer (internal use only)
SecuredConnectionConfirmation
Connecting to a secured server/peer (internal use only)
RPCMapping
Packet that tells us the packet contains an integer ID to name mapping for the remote system (internal use only)
DetectLostConnection
A reliable packet to detect lost connections (internal use only)
OpenConnectionRequest
Offline message so we know when to reset and start a new connection (internal use only)
OpenConnectionReply
Offline message response so we know when to reset and start a new connection (internal use only)
RPC
Remote procedure call (internal use only)
RPCReply
Remote procedure call reply, for RPCs that return data (internal use only)
OutOfBandInternal
RakPeer - Same as ID_ADVERTISE_SYSTEM, but intended for internal use rather than being passed to the user. Second byte indicates type. Used currently for NAT punchthrough for receiver port advertisement. See ID_NAT_ADVERTISE_RECIPIENT_PORT
ConnectionRequestAccepted
RakPeer - In a client/server environment, our connection request to the server has been accepted.
ConnectionAttemptFailed
RakPeer - Sent to the player when a connection request cannot be completed due to inability to connect.
AlreadyConnected
RakPeer - Sent a connect request to a system we are currently connected to.
NewIncomingConnection
RakPeer - A remote system has successfully connected.
NoFreeIncomingConnections
RakPeer - The system we attempted to connect to is not accepting new connections.
DisconnectionNotification
RakPeer - The system specified in Packet::systemAddress has disconnected from us. For the client, this would mean the server has shutdown.
ConnectionLost
RakPeer - Reliable packets cannot be delivered to the system specified in Packet::systemAddress. The connection to that system has been closed.
RSAPublicKeyMismatch
RakPeer - We preset an RSA public key which does not match what the system we connected to is using.
ConnectionBanned
RakPeer - We are banned from the system we attempted to connect to.
InvalidPassword
RakPeer - The remote system is using a password and has refused our connection because we did not set the correct password.
ModifiedPacket
RakPeer - A packet has been tampered with in transit. The sender is contained in Packet::systemAddress.
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 SetOccasionalPing.
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.
AdvertiseSystem
RakPeer - Inform a remote system of our IP/Port, plus some offline data
RemoteDisconnectNotification
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.
RemoteConnectionLost
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.
RemoteNewIncomingConnection
ConnectionGraph plugin - In a client/server environment, a client other than ourselves has connected. Packet::systemAddress is modified to reflect the systemAddress of the client that is not connected directly to us. The packet encoding is SystemAddress 1, ConnectionGraphGroupID 1, SystemAddress 2, ConnectionGraphGroupID 2
DownloadProgress
FileListTransferHeader
FileListTransfer plugin - Setup data
FileListTransferFile
FileListTransfer plugin - A file
DDTDownloadRequest
DirectoryDeltaTransfer plugin - Request from a remote system for a download of a directory
TransportString
RakNetTransport plugin - Transport provider message, used for remote console
ReplicaManagerConstruction
ReplicaManager plugin - Create an object
ReplicaManagerDestruction
ReplicaManager plugin - Destroy an object
ReplicaManagerScopeChange
ReplicaManager plugin - Changed scope of an object
ReplicaManagerSerialize
ReplicaManager plugin - Serialized data of an object
ReplicaManagerDownloadStarted
ReplicaManager plugin - New connection, about to send all world objects
ReplicaManagerDownloadComplete
ReplicaManager plugin - Finished downloading all serialized objects
ConnectionGraphRequest
ConnectionGraph plugin - Request the connection graph from another system
ConnectionGraphReply
ConnectionGraph plugin - Reply to a connection graph download request
ConnectionGraphUpdate
ConnectionGraph plugin - Update edges / nodes for a system with a connection graph
ConnectionGraphNewConnection
ConnectionGraph plugin - Add a new connection to a connection graph
ConnectionGraphConnectionLost
ConnectionGraph plugin - Remove a connection from a connection graph - connection was abruptly lost
ConnectionGraphDisconnectionNotification
ConnectionGraph plugin - Remove a connection from a connection graph - connection was gracefully lost
RouteAndMulticast
Router plugin - route a message through another system
RakVoiceOpenChannelRequest
RakVoice plugin - Open a communication channel
RakVoiceOpenChannelReply
RakVoice plugin - Communication channel accepted
RakVoiceCloseChannel
RakVoice plugin - Close a communication channel
RakVoiceData
RakVoice plugin - Voice data
AutopatcherGetChangelistSinceDate
Autopatcher plugin - Get a list of files that have changed since a certain date
AutopatcherCreatingList
Autopatcher plugin - A list of files to create
AutopatcherDeletionList
Autopatcher plugin - A list of files to delete
AutopatcherGetPatch
Autopatcher plugin - A list of files to get patches for
AutopatcherPatchList
Autopatcher plugin - A list of patches for a list of files
AutopatcherRepositoryFatalError
Autopatcher plugin - Returned to the user: An error from the database repository for the autopatcher.
AutopatcherFinishedInternal
Autopatcher plugin - Finished getting all files from the autopatcher
AutopatcherFinished
AutopatcherRestartApplication
Autopatcher plugin - Returned to the user: You must restart the application to finish patching.
NATPunchthroughRequest
NATPunchthrough plugin - Intermediary got a request to help punch through a nat
NATTargetNotConnected
NATPunchthrough plugin - Intermediary cannot complete the request because the target system is not connected
NATTargetConnectionLost
NATPunchthrough plugin - While attempting to connect, we lost the connection to the target system
NATConnectAtTime
NATPunchthrough plugin - Internal message to connect at a certain time
NATSendOfflineMessageAtTime
NATPunchthrough plugin - Internal message to send a message (to punch through the nat) at a certain time
NATInProgress
NATPunchthrough plugin - The facilitator is already attempting this connection
DatabaseQueryRequest
LightweightDatabase plugin - Query
DatabaseUpdateRow
LightweightDatabase plugin - Update
DatabaseRemoveRow
LightweightDatabase plugin - Remove
DatabaseQueryReply
LightweightDatabase plugin - A serialized table. Bytes 1+ contain the table. Pass to TableSerializer::DeserializeTable
DatabaseUnknownTable
LightweightDatabase plugin - Specified table not found
DatabaseIncorrectPassword
LightweightDatabase plugin - Incorrect password
ReadyEventSet
ReadyEvent plugin - Set the ready state for a particular system
ReadyEventUnset
ReadyEvent plugin - Unset the ready state for a particular system
ReadyEventAllSet
All systems are in state ID_READY_EVENT_SET
ReadyEventQuery
ReadyEvent plugin - Request of ready event state - used for pulling data when newly connecting
LobbyGeneral
Lobby packets. Second byte indicates type.
AutoRPCCall
Auto RPC procedure call
AutoRPCRemoteIndex
Auto RPC functionName to index mapping
AutoRPCUnknownRemoteIndex
Auto RPC functionName to index mapping, lookup failed. Will try to auto recover
RPCRemoteError
Auto RPC error code
See AutoRPC.h
for codes, stored in packet->data[1]
Implementations§
Trait Implementations§
source§impl FromPrimitive for ID
impl FromPrimitive for ID
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl ToPrimitive for ID
impl ToPrimitive for ID
source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self
to an i64
. If the value cannot be
represented by an i64
, then None
is returned.source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self
to a u64
. If the value cannot be
represented by a u64
, then None
is returned.source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self
to an isize
. If the value cannot be
represented by an isize
, then None
is returned.source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self
to an i8
. If the value cannot be
represented by an i8
, then None
is returned.source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self
to an i16
. If the value cannot be
represented by an i16
, then None
is returned.source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self
to an i32
. If the value cannot be
represented by an i32
, then None
is returned.source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self
to an i128
. If the value cannot be
represented by an i128
(i64
under the default implementation), then
None
is returned. Read moresource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self
to a usize
. If the value cannot be
represented by a usize
, then None
is returned.source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self
to a u8
. If the value cannot be
represented by a u8
, then None
is returned.source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self
to a u16
. If the value cannot be
represented by a u16
, then None
is returned.source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self
to a u32
. If the value cannot be
represented by a u32
, then None
is returned.source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self
to a u128
. If the value cannot be
represented by a u128
(u64
under the default implementation), then
None
is returned. Read more