I'm implementing a Java multi-threaded server that receives messages from clients and makes a broadcast of them to others. But I'm having problems. The server only receives the messages sent to users when users' sockets are closed.
The application is divided into two modules: client
for client codes and server
for server codes.
Here is the code for my GitHub project for those who feel the most willingness to see them there. Please checkout the branch test
and not master
The codes are all very well commented and simple to understand.
As I already asked this question in the English stack overflow, I'll just put a link to it here . The codes are all there.