posted 13 years ago
Hi,
the story:
Clients sends a request, server reads that request, and sends a response, lastly client reads the response.
There will be multiple clients so I tried to implement it using threads in the server code to be able to continue listening for new requests.
But in the last step the client freezes when I say read the response from the server. I mean the client sends a request successfully, and the server reads it and responses successfully but the client then cannot get the response; freezes.
Here is the code:
This is for the client:
And here is the server:
And the server's response sender run() function:
Thank you for any help..