Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

What exactly do parse?


Fred
 Share

Recommended Posts

Look at the top of HandleData.

The packets are sent and received as solid blocks of text. They'll look something like this:

```
loginérobinépasswordé0é1é0é0éå
```
é is the SEP_CHAR you use when sending packets, å being the END_CHAR

The Split() command reads the SEP_CHAR (é) as a split, and then takes the rest of the data from the packet and stores it into the array.

The array is called parse, and would look something like this

```
Parse(0) = login
Parse(1) = robin
Parse(2) = password
Parse(3) = 0
Parse(4) = 1
Parse(5) = 0
Parse(6) = 0
```
Then the array would end on END_CHAR (Ã¥)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...