dk.itu.smds.torusman
Class TCPServer

java.lang.Object
  extended by dk.itu.smds.torusman.TCPServer

public class TCPServer
extends java.lang.Object

The Class TCPServer creates a server that listens for connection from clients and then handles packaging to and from them.


Field Summary
 int allowableCons
          The allowable cons.
 dk.itu.smds.torusman.Connection connection
          The out con.
 dk.itu.smds.torusman.Connection[] cons
          The cons.
 ServerListener listener
          The listener.
 dk.itu.smds.torusman.Connection outCon
          The out con.
 ServerSender sender
          The sender.
 ServerTime time
          The time.
 
Constructor Summary
TCPServer()
          Instantiates a new tCP server.
 
Method Summary
static void main(java.lang.String[] args)
          The main method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowableCons

public int allowableCons
The allowable cons.


listener

public ServerListener listener
The listener.


sender

public ServerSender sender
The sender.


cons

public dk.itu.smds.torusman.Connection[] cons
The cons.


connection

public dk.itu.smds.torusman.Connection connection
The out con.


outCon

public dk.itu.smds.torusman.Connection outCon
The out con.


time

public ServerTime time
The time.

Constructor Detail

TCPServer

public TCPServer()
Instantiates a new tCP server.

Method Detail

main

public static void main(java.lang.String[] args)
The main method.

Parameters:
args - the arguments