|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.zazof.jtegServer
Class ConnectionController

java.lang.Objectorg.zazof.jtegServer.ConnectionController
- public class ConnectionController
- extends java.lang.Object
This class serves as a facade to the connections
| Field Summary | |
private java.util.Vector |
$connections
|
private static boolean |
$debug
|
private MessagePool |
$messagePool
|
private MessageQueue |
$queue
|
private ServerConnection |
$serverConnection
|
(package private) static org.apache.log4j.Category |
log
|
| Constructor Summary | |
ConnectionController(int port,
MessageQueue mq)
The server starts listening for clients on the specified port. |
|
| Method Summary | |
void |
createNewConnection(java.net.Socket clientSocket)
Serverconnection calls this method if it receives a client connect |
void |
processMessage(java.lang.String message,
Player player)
ClientConnection calls this method if it received an incoming message |
void |
removeConnection(ClientConnection connection)
called by ClientConnection if there are IO problems |
void |
removeServerConnection()
called by ServerConnection if there are IO problems |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
$serverConnection
private ServerConnection $serverConnection
$connections
private java.util.Vector $connections
$queue
private MessageQueue $queue
$messagePool
private MessagePool $messagePool
$debug
private static final boolean $debug
- See Also:
- Constant Field Values
log
static org.apache.log4j.Category log
| Constructor Detail |
ConnectionController
public ConnectionController(int port,
MessageQueue mq)
throws java.io.IOException
- The server starts listening for clients on the specified port.
| Method Detail |
createNewConnection
public void createNewConnection(java.net.Socket clientSocket) throws java.io.IOException
- Serverconnection calls this method if it receives a client connect
processMessage
public void processMessage(java.lang.String message, Player player)
- ClientConnection calls this method if it received an incoming message
removeConnection
public void removeConnection(ClientConnection connection)
- called by ClientConnection if there are IO problems
removeServerConnection
public void removeServerConnection()
- called by ServerConnection if there are IO problems
|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jtegServer.ConnectionController