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
Last edited by parvin1987; Jul 10th, 2006 at 2:28 am.
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.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.