Posted by Adam on May 30, 2006 at 21:59:44:
In Reply to: Dynamic Packet Size posted by Adam on May 30, 2006 at 11:55:08:
: if i have a struct like so
:
: struct PACKET
: {
: unsigned char command;
: unsigned short size;
: char* message;
: };
:
: how would i go about sending and recieving it? assuming "unsigned short size" is set to the size of the packet, or message length? or does the size of the packet need to be static?
im gunna change my question a little.
how would i recieve this packet if i dont know the size before hand?