c structure for data handling and packetizing