Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket read and print problem  RSS feed

 
Lilly Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some problems in socket read and print. Here is the scenario:
Class Test1 has a server socket, whenever it receives call, it passes it to class Test2 (whcih is a thread class) to handle. Class Test3 is used to send message to the ServerSocket sitting in Test1.
When I use the for loop in Test2 to the print, it won't work.
 
Lilly Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Continue:
e.g. In Test2, when I use:
for( int i=0; i<5; i++ )
{
out.println("Testing");
out.println("Again");
}
It won't send over to Test3. Why?
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!