Home > other >  JAVA client and server Socket communication problems
JAVA client and server Socket communication problems

Time:10-26

Want to realize the function of two steps: (1) randomly after a client sends a request to the server, the server receives the request 2. Server according to the request, the information broadcast to all relevant client,
Now encountered a problem:
When a client sends a message to the server, the server if the single thread, how do you know which the client sends a message to come over? Is to open all with client connection channel to detect all client input if there is news?
If multiple threads, but also how to do?


  • Related