Hail,
I'm starting to play with an API we received. I connect with winsock to a server and I want to send messages for it to reply to. I connect fine, no problem there. Where I'm stuck actually is converting the messages for the server to understand them...
For exemple, they tell me to log in to the app, I must send the following message:
SCHAPI_MSG_LOGIN
Which is q query I message I can send
Its structure is as follows:
52 bytes in length
0-7 is sign in, 8 null, 9-16 is the password, 17 is null and 18-51 is reserved for further use
They then specify that sign in name is 8 byte string as is the password and that 18-51 ia 34 bytes
Let's say my login is "cars" and password "1234", how would I write the message
Oh and the sign in ad password strings are fixed so they tell me to put 0 to fill the strings???
Does this mean anything to anyone?
Phailak
I'm starting to play with an API we received. I connect with winsock to a server and I want to send messages for it to reply to. I connect fine, no problem there. Where I'm stuck actually is converting the messages for the server to understand them...
For exemple, they tell me to log in to the app, I must send the following message:
SCHAPI_MSG_LOGIN
Which is q query I message I can send
Its structure is as follows:
52 bytes in length
0-7 is sign in, 8 null, 9-16 is the password, 17 is null and 18-51 is reserved for further use
They then specify that sign in name is 8 byte string as is the password and that 18-51 ia 34 bytes
Let's say my login is "cars" and password "1234", how would I write the message
Oh and the sign in ad password strings are fixed so they tell me to put 0 to fill the strings???
Does this mean anything to anyone?
Phailak