Original Post
Okay, I'm trying to figure out how to use RakNet, but the documentation is not so good, IMO. Question 1: In all of the examples where I see bitstreams used, the variables are "encoded" seperatley. Could you just write an entire object to a bitstream rather than it's member varaibles? Question 2: If you just encode an object (by casting it to char*) and send it, how do you set the first byte to be the packet ID thing? I don't see this ANYWHERE in the documentation, only how to read the packet ID on the recieving end. Thank you for putting up with my confusedness.