work thread recive and init peer