wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes can someone explain me? (ServerSocket) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "can someone explain me? (ServerSocket)" Watch "can someone explain me? (ServerSocket)" New topic
Author

can someone explain me? (ServerSocket)

Julio Cesar Marques
Ranch Hand

Joined: Mar 21, 2009
Posts: 66
ServerSocket theServer = new ServerSocket(port);
Socket client = theServer.accept();
/**
*
client.getInputStream() EXISTS!
client.getOutputStream() EXISTS!
*
*/

new Thread(HndSock(client)).start();
--> Inner Thread...
/**
*
client.getInputStream() IS NULL!
client.getOutputStream() IS NULL!
*
*/

Why? I Like to understand whats happens?
Why the Object client inner the thread is not null BUT your streams are?


Julio Cesar Lopes Marques
Sun Certified Java Developer 5, Sun Certified Java Programmer 5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can someone explain me? (ServerSocket)
 
Similar Threads
Chatting Applet Problem
IO Streams and sockets
Runtime exec...and br hanging
socket data compression problem
button hang in threaded server