Java |
Everything is working except, i'm stuck in do-while. I cannot get to the
Code
Console.WriteLine("Connection to server lost.");
part of code. I don't know what i'm doing wrong.
Please helpJava |
Console.WriteLine("Connection to server lost.");
part of code. I don't know what i'm doing wrong.
Please helpKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak Bhatia142 reputationPosted Jul 3, 2010, 7:41 PM EDT
I just wann make one thing clear do you want to move out from do while loop when server closes the socket or you just want to read the reply immediately and move out from loop.
Reply if you are still waiting for your answer.
Neven16 reputationPosted Jul 3, 2010, 10:17 PM EDT
I want to get reply from server immediately and move from loop. I don't want to close the socket. The writing "connection to the server lost" is just example, the next step in code to see if my program reaches through the loop. I could put
Thanks for quick reply