aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Socket read and print problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Socket read and print problem" Watch "Socket read and print problem" New topic
Author

Socket read and print problem

Lilly Wang
Greenhorn

Joined: Jul 12, 2002
Posts: 4
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

Joined: Jul 12, 2002
Posts: 4
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Socket read and print problem
 
Similar Threads
Object Reference Casting
instanceof question?
a simple question
Classpath+packages
find creator of an object