Finished all the message, and refactor the UDP server code.