solve the "Bind Error:Address is already been used" problem and coding style integrated.