|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--amber.client.SendThread
Thread to deal with the transmission of messages destined for the Server.
ApplicationHandler,
ComponentHandler,
BaseComponent| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SendThread(java.net.Socket socket,
SocketConnection parent)
Construct the thread, with it's parent class so it may pass back messages. |
|
SendThread(java.net.Socket socket,
SocketConnection parent,
java.util.Vector queue)
Construct the thread, with it's parent class so it may pass back messages. |
|
| Method Summary | |
void |
addPacket(Packet packet)
Adds a packet for transmission to the server. |
java.util.Vector |
getQueue()
Returns the transmission queue of outgoing packets. |
void |
run()
Primary operating function for the thread. |
void |
terminate()
Terminate the thread execution. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
| Constructor Detail |
public SendThread(java.net.Socket socket,
SocketConnection parent)
throws java.io.IOException
socket - Socket connected to the remote server.parent - SocketConnection master for this thread.java.io.IOException - with any errors with the socket.
public SendThread(java.net.Socket socket,
SocketConnection parent,
java.util.Vector queue)
throws java.io.IOException
socket - Socket connected to the remote server.parent - SocketConnection master for this thread.queue - Vector of packets to preinitialise the transmission queue with.java.io.IOException - with any errors with the socket.| Method Detail |
public void addPacket(Packet packet)
packet - Packet to send.public java.util.Vector getQueue()
public void terminate()
public void run()
run in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||