Expand description
Offline packets are packets that are sent before a connection is established. In rak-rs, these packets consist of:
UnconnectedPing
UnconnectedPong
OpenConnectRequest
OpenConnectReply
SessionInfoRequest
SessionInfoReply
IncompatibleProtocolVersion
During this stage, the client and server are exchanging information about each other, such as the server id, the client id, the mtu size, etc, to prepare for the connection handshake.
Structs§
- Incompatible
Protocol Version - This packet is sent by the server to indicate that the server does not support the protocol version of the client.
- Open
Connect Reply - This packet is sent in response to a
OpenConnectRequest
packet, and confirms the information sent by the peer in theOpenConnectRequest
packet. - Open
Connect Request - This packet is the equivelant of the
OpenConnectRequest
packet in RakNet. - Session
Info Reply - This packet is sent in response to a
SessionInfoRequest
packet, and confirms all the information sent by the peer in theSessionInfoRequest
packet. This packet also specifies the external address of the peer, as well as whether or not encryption at the RakNet level is enabled on the server. - Session
Info Request - This packet is sent after receiving a
OpenConnectReply
packet, and confirms that the peer wishes to proceed with the connection. The information within this packet is primarily used to get the external address of the peer. - Unconnected
Ping - Send to the other peer expecting a
UnconnectedPong
packet, this is used to determine the latency between the client and the server, and to determine if the server is online. - Unconnected
Pong - Sent in response to a
UnconnectedPing
packet. This is used to determine the latency between the client and the server, and to determine that the peer is online.
Enums§
- Offline
Packet - This is an enum of all offline packets.