C++ Packet Generator