monrovia.protocol.server
Class ProtocolServerThread

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

public class ProtocolServerThread
extends java.lang.Thread

ProtocolServerThread:

This class handles the tcp negotiation, initializes the udp- and tcpsender, transfers maps and commands and then goes to listening for new messages from the client.


Field Summary
 boolean mConnectionOpen
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProtocolServerThread(java.net.Socket pSocket, ProtocolHandler pProtocolHandler, java.net.DatagramSocket pDatagramSocket)
          Constuctor
 
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

mConnectionOpen

public boolean mConnectionOpen
Constructor Detail

ProtocolServerThread

public ProtocolServerThread(java.net.Socket pSocket,
                            ProtocolHandler pProtocolHandler,
                            java.net.DatagramSocket pDatagramSocket)
Constuctor
Parameters:
pSocket - a socket that has just accepted a new client
pProtocolHandler - the protocolhandler for this connection
pDatagramSocket - the udpsocket of this server
Method Detail

run

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