Chat program written in Java, support both peer to peer chat and chat via the registration to the dedicated server