Chat application using socket programming with TCP and UDP protocol in Java