How to create network packets in C++?
Sorry if I posted this in the wrong section, I wasn't too sure!
I want to create an application that will create customized network packets from scratch, instead of just specifying to send specific bytes over to certain destination. I want to create and send a customized TCP / UDP packet to a certain destination. I know that sounds a little vague. Each network packet is split into different frames and segments, where you have the header, tail, and different segments of data in between the header and tail, what I want to do is create the packet from scratch, build the packet layer from layer. Manually code the IP header and assemble the IP packet together. I'm not sure if this is even possible or even makes sense, but was hoping for some advise from others to tell me how my thinking is wrong or maybe how I'm on the right track, maybe?

