#define NAMESIZE 32 #define BUFSIZE 256 typedef struct packet { int length; char name[NAMESIZE]; char msg[BUFSIZE]; } Packet;