hi all,
I have been struggling for a while with my client/server program.
I have to authenticate in order to log on correctly.
I have managed to get most things sorted, asking for username ( which is a long integer (12) ) and also and customer ID (also an int (4)), and they are stored into 2 arrays. I can then send them from the client to the server.
For now all I am doing is printing the two integers out to see that they are correct, however when if I printf the data the numbers do not match what I typed into the client, and I do not know why ?
It is pointless trying to go onto the next stage of validating the numbers from a text file until i get this part sorted.
Somebody said that i needed to convert my integers into strings in my client program before sending them to the server as they will get corrupted...how on earth do i do this ? Is this true ? Do i need to do it, or is there another way?
Cheers for looking and any advice would be greatly appreciated.
Fatboy