• Post Reply Bookmark Topic Watch Topic
  • New Topic

Echo server program help  RSS feed

 
Singh Sherry
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I was writing the code for a Echo server program.

Below is the client part. I am having an issue in it. When I write something between the String InputLine, and the while method, I get the echo message but if I remove that line(bold), I didn't get any reply. Please Explain.




Thanks.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this http://www.coderanch.com/how-to/java/UseCodeTags
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've added code tags for you and locked your duplicate thread as this thread has more detail in it. In future please edit your original post rather than starting a new thread.
 
Liutauras Vilda
Sheriff
Posts: 4914
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Singh,
Singh Sherry wrote:When I write something between the String InputLine, and the while method, I get the echo message but if I remove that line(bold), I didn't get any reply. Please Explain.

When the block within the while loop being executed, in which circumstances?
When you get an answer, ask yourself your main question.
Welcome to the Ranch
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!