fix some bug about mutex,use lock instead of trylock. add udpSocket,still need to debug