Jump to content
  • 0

Questions about how client/server handles packets


fnzr

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

Hi,

I'm trying to understand how the client builds the network packets, and how does the server reads them. I've found this wiki page that describes the packets (https://github.com/rathena/rathena/wiki/Packets), which is very useful, but I guess my questions are more basic.

For example, take the struct PACKET_CH_MAKE_CHAR, which (I assume) is sent from the client when it wants to create a new character. I'm able to create a byte array and the server accepts it (it doesn't  complain about unknown packet), but the server doesn't respond, which I guess it means its waiting more bytes?

Another aspect is, how is the authentication made so the server knows to which account the character is associated to? Maybe a socket is created at the login time and the same socket is used for all following packets?

My goal is to be able to interact with the server (as a player) without needing the client, but manually sending the packets.

Where can I read more about this?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...