|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.element.InputBuffer
Manages a thread that reads frames from a ClientConnection object and adds them to a FrameQueue. The new thread is created and started in the constructor.
| Constructor Summary | |
InputBuffer(java.net.InetAddress address,
int port,
FrameTarget outputQueue)
|
|
InputBuffer(java.net.InetAddress address,
int port,
FrameTarget outputQueue,
java.lang.ThreadGroup tg)
creates a new thread to execute this object's run method |
|
| Method Summary | |
void |
exit()
The creator of this object should call this method to tell it to end its thread of execution. |
ClientConnection |
getConnection()
Provides access to the internal ClientConnection object |
void |
run()
Main loop for the InputBuffer thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputBuffer(java.net.InetAddress address,
int port,
FrameTarget outputQueue,
java.lang.ThreadGroup tg)
throws java.io.IOException
address - the host's internet addressport - the port numberoutputQueue - destination for incoming frames
java.io.IOException - if a connection to the given server is impossible
public InputBuffer(java.net.InetAddress address,
int port,
FrameTarget outputQueue)
throws java.io.IOException
| Method Detail |
public void run()
run in interface java.lang.Runnablepublic void exit()
public ClientConnection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||