Original Post
Hey everyone, I'm currently trying to learn more about networking protocols and just the way data is transfered across the internet. I understand the formation of packet headers - lengths of data fields, order, etc. Now i want to try and use what i know by coding a rawpacket class that will create and store the header but i'm not sure what the best way of going about this is. My idea was to store each field as a bitset. i would pass the data to the object through set functions and they would convert the it into the bitset for storage. is there a better way of doing this? what are your opinions?