|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.clientserver.SimpleClient.Sender
The working thread for a client. In this thread, data is being sent and received to/from the server.
Field Summary | |
private java.net.Socket |
conn
|
private boolean |
disconnect
|
private java.io.InputStream |
is
|
private java.io.OutputStream |
os
|
Constructor Summary | |
SimpleClient.Sender()
Connects to the server with the configured address/port. |
Method Summary | |
private void |
connect()
Connects to the server |
private void |
disconnect()
Disconnects the client from the server. |
private void |
disconnectInternal()
Tries to disconnect from the server. |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.net.Socket conn
private java.io.InputStream is
private java.io.OutputStream os
private boolean disconnect
Constructor Detail |
public SimpleClient.Sender() throws java.lang.Exception
java.lang.Exception
- if the connection fails, the client thread fails...Method Detail |
private void disconnect()
private void disconnectInternal()
private void connect() throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |