make a flag in the header packet and then received data by select.select, we can judge the data whether it's the right one.