code: def __create_tcp_top(self, packet):
          
          length = len(packet)
          top = pack('<HHI', const.MACHINE_PREPARE_DATA_1, const.MACHINE_PREPARE_DATA_2, length)
          return top + packet
docs: witch the complete packet set top header