|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--de.jadv.client.SocketThread
A thread that the client creates which then makes a connection to a server via a proxy.
JAdvClient,
SyncByteBuffersForChannels| Field Summary | |
private JAdvClient |
_client
|
private boolean |
_done
|
private java.nio.channels.SocketChannel |
_socketChannel
|
private static java.util.logging.Logger |
logger
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SocketThread(JAdvClient client)
Creates a SocketThread associated with the specified client. |
|
| Method Summary | |
void |
connect(java.lang.String host,
int port)
Connects to a proxy on the specified host and port. |
void |
run()
Called from the start() method by the system. |
void |
setDone(boolean done)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static java.util.logging.Logger logger
private boolean _done
private java.nio.channels.SocketChannel _socketChannel
private JAdvClient _client
| Constructor Detail |
public SocketThread(JAdvClient client)
client - the JAdvClient to associate with this
SocketThread| Method Detail |
public void setDone(boolean done)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public void connect(java.lang.String host,
int port)
throws java.io.IOException
host - the hostport - the port
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||