Dynamic Packet Size


[ Follow Ups ] [ Post Followup ] [ Back To Message Board ]

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?



Follow Ups:


Post a Followup

Name:
E-Mail:

Subject:

Comments:



[ Follow Ups ] [ Post Followup ] [ Back To Message Board ]