Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Messages in the API...

Status
Not open for further replies.

Phailak

Programmer
Apr 10, 2001
142
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top