I ran a program with one client and one server.
it works correctly .but when I have a multiClient program ,the serverThread can not read the sentence from client .why it can't do this?is that because of extending thread
I know that client class sends the sentence but the server can not read that .what should I do?
I ran a program with one client and one server.
it works correctly .but when I have a multiClient program ,the serverThread can not read the sentence from client .why it can't do this?is that because of extending thread
I know that client class sends the sentence but the server can not read that .what should I do?
please help me
Please do ask question in bit more detail. We can't get the design of program you are making with these sentences.
There are a bit things that you can check. First of all make sure that each client is establishing the connectionwith server.
A better approach is to open connection with each client in separate thread. i.e if there are 3 clients connected to server, server must be running 3 threads to listen from these clients.