To be a network, you need to write packet class, I think it has changed many times. Nowadays, the initial design idea is set. . . Write two classes, one is a packet, one is the PacketHeader Packet is responsible for data storage. Header provides a different header information Packet and Header know each other in order to call header to appear inside the Packet in the form of the list in order to add any Header Header to be added by Packet. Unified TomemMem interface, the two interface functions transform each other, with these two interfaces, you can directly get Header directly to the packet pointer directly through the packet, and directly access this Header behind this header directly The only inadequate place in OverLoad seems to be added to Header, and the number of memory copies is too much. Consider using RESERVER's party? Method improve performance. Thoughts finishing, write code tomorrow