monrovia.protocol.server
Class ProtocolServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--monrovia.protocol.server.ProtocolServer
All Implemented Interfaces:
java.lang.Runnable

public class ProtocolServer
extends java.lang.Thread

The ProtocolServer.


Field Summary
 boolean mListening
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProtocolServer(java.net.ServerSocket pServerSocket, ProtocolHandler pProtocolHandler, java.net.DatagramSocket pDatagramSocket)
          Initializes the protocol server.
 
Method Summary
 void run()
          the implementation
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, getPriority, isAlive, join, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mListening

public boolean mListening
Constructor Detail

ProtocolServer

public ProtocolServer(java.net.ServerSocket pServerSocket,
                      ProtocolHandler pProtocolHandler,
                      java.net.DatagramSocket pDatagramSocket)
Initializes the protocol server.
Parameters:
pServerSocket - Socket for listening
pProtocolHandler - Implementation of the handler interface.
pDatagramScoket - the udp socket to use
Method Detail

run

public void run()
the implementation
Overrides:
run in class java.lang.Thread