|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Chat.Receiver
A receiver, "server" thread. Listens for protocol messages and processes
them sychronously, using Console
and HostList
objects.
Sender
,
Console
,
HostList
Field Summary | |
private Console |
console
The link to common console. |
private HostList |
hostlist
The link to common host list. |
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
(package private) |
Receiver(Console console,
HostList hostlist)
Initializes the receiver thread with the link to console and host list. |
Method Summary | |
(package private) void |
process(java.io.BufferedReader in,
java.io.PrintWriter out)
Process incoming message. |
void |
run()
Receiver thread's body. |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final Console console
private final HostList hostlist
Constructor Detail |
Receiver(Console console, HostList hostlist)
console
- link to console.hostlist
- link to hostlist.Method Detail |
void process(java.io.BufferedReader in, java.io.PrintWriter out) throws java.io.IOException
in
- input stream.out
- output stream.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 |