Here we explain the issue that prevent server from receiving messages from clients in order to send them to other clients. We work throw the main method where we initialize server and both threads of receiver and sender for each client. In short, we did following to fix the issue:
1. In class Sender: there is a boolean variable called keep_alive we didn't initialize it with true value.
2. Also in Sender class: when the connection complete it should shutdown output stream instead of input stream.
3. In main method: after validating username and password we should send user nickname to the connected client.
4. In main class: there is a method get called after the receiver finish, it should shutdown input stream instead of output stream.
На этой странице сайта вы можете посмотреть видео онлайн Java Chat Server Issues длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MNS Tutorial 14 Апрель 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 58 раз и оно понравилось 0 зрителям. Приятного просмотра!