Client
Class ServerEchoListener

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Client.ServerEchoListener
All Implemented Interfaces:
java.lang.Runnable

class ServerEchoListener
extends java.lang.Thread

A thread responsible for sitting on a given port and registering messages receives


Field Summary
private  java.io.BufferedReader inSock
          An input for the socket
 
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) ServerEchoListener(java.io.BufferedReader inSock)
          Read a line from the socket's input
 
Method Summary
private  java.lang.String getLine()
          Receives a line over the network
 void run()
          A front-end for this thread.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inSock

private final java.io.BufferedReader inSock
An input for the socket
Constructor Detail

ServerEchoListener

ServerEchoListener(java.io.BufferedReader inSock)
Read a line from the socket's input
Method Detail

getLine

private final java.lang.String getLine()
Receives a line over the network
Returns:
The line received

run

public final void run()
A front-end for this thread. Read lines from the socket and put it in the server echo FIFO
Overrides:
run in class java.lang.Thread