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.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
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 |
mConnectionOpen
public boolean mConnectionOpen
ProtocolServerThread
public ProtocolServerThread(java.net.Socket pSocket,
ProtocolHandler pProtocolHandler,
java.net.DatagramSocket pDatagramSocket)
- Constuctor
- Parameters:
pSocket
- a socket that has just accepted a new clientpProtocolHandler
- the protocolhandler for this connectionpDatagramSocket
- the udpsocket of this server
run
public void run()
- the implementation
- Overrides:
run
in class java.lang.Thread