Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vp817 authored May 16, 2024
1 parent f4ed8d3 commit 52543a1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,13 @@ This is the latest RakNet protocol documentation. It includes information on the
- If the connection request is rejected, the client should start again from step 1.

4. Send datagrams to the server.
- Handle the datagrams sent to the server as required, whether they are AckedDatagrams, NackedDatagrams, require B and AS values, or are segmented packets.
- After that you will receive inside the datagram received a list of packets that will be sent seperately down you will see them and understand
- Send a ConnectionRequest packet to the server.
- Wait for a ConnectionRequestAccepted packet from the server.
- Handle the datagrams sent to the client, whether they are AckedDatagrams, NackedDatagrams, require B and AS values, or are segmented packets.
- But before handling, at when you handle the OpenConnectionReplyTwo or anywhere related such as if the OpenConnectionReplyTwo got received, you need to do the following after you do what you want:
- Send a ConnectionRequest packet to the server.
- Wait for a ConnectionRequestAccepted packet from the server.
- Send a NewIncomingConnection packet to the server.
- Wait for a ConnectedPing packet from the server to confirm the connection is established.
- Send a DisconnectNotification packet to the server.
- Send a DisconnectNotification packet to the server. (if you want to disconnect)
- Wait for the server to receive the packet and if you receive it that means its disconnected now.
- Send a ConnectedPing packet to the server.
- Wait for a ConnectedPong packet from the server to confirm the connection is still alive.
Expand Down

0 comments on commit 52543a1

Please sign in to comment.