if i have a packet like so
i know how to send it, but how would i recieve it? since i dont know the size of the packet before i recv() it?Code:struct PACKET
{
unsigned char command;
unsigned short length;
char* message;
};
Printable View
if i have a packet like so
i know how to send it, but how would i recieve it? since i dont know the size of the packet before i recv() it?Code:struct PACKET
{
unsigned char command;
unsigned short length;
char* message;
};