03-03-2009, 10:44 PM
Robin Wrote:Tony Wrote:Doesn't Winsock handle one request at a time?
and UGH byte arrays.. looks so confusing.
It's really not.
You use the functions to add bytes, integers, strings etc. to the array, then peel them off in the opposite order in the server.
Easy shit.
Yeah I understood a bit of that part by reading up on Verrigan's tutorial but took a peek at his code and his functions
I did not understand one bit of it.
Okay his code here
Code:
nLen = GetIntegerFromBuffer(Buffer, True)
nBytes = GetFromBuffer(Buffer, nLen, True)
Sex = GetByteFromBuffer(Buffer, True)
Class = GetByteFromBuffer(Buffer, True)
CharNum = GetByteFromBuffer(Buffer, True)
If there types of bytes in order, and it took that byte from the order, how does it know what's what?