|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.transport.tcp.TCPCommServer.ClientHandler
public class TCPCommServer.ClientHandler
Field Summary | |
---|---|
protected java.lang.String |
_clientHost
|
protected int |
_clientPort
|
protected java.net.Socket |
_clientSocket
|
protected boolean |
_disconnected
|
protected java.io.ObjectInputStream |
_ois
|
Constructor Summary | |
---|---|
TCPCommServer.ClientHandler(java.net.Socket clientSocket)
ClientHandler sets the socket |
Method Summary | |
---|---|
java.lang.String |
getHost()
getHost |
int |
getPort()
getPort |
boolean |
isConnected()
isConnected |
void |
run()
run While connected, continues to read the object input stream and adds all objects to the newObjects vector |
void |
start()
starts the client handler |
void |
stop()
stop sets client handler to disconnected which will terminate the "run" while loop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.net.Socket _clientSocket
protected java.io.ObjectInputStream _ois
protected boolean _disconnected
protected int _clientPort
protected java.lang.String _clientHost
Constructor Detail |
---|
public TCPCommServer.ClientHandler(java.net.Socket clientSocket)
the
- socket for the client handler to read fromMethod Detail |
---|
public void start() throws TransportFailure
TransportFailure
public void stop()
public void run()
run
in interface java.lang.Runnable
public boolean isConnected()
public java.lang.String getHost()
public int getPort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |