Class ModelServer

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ModelServer

public class ModelServer
extends Thread
Network server which listens for remote connection requests and spawns a new ModelServerWorker thread for each client.

Version:
$Revision: 1.4 $, $Date: 2000/10/12 14:09:48 $
Author:
Mike Spengler

Variable Index

 o cm
Pointer to ConfigManager for this run
 o qlen
Listen queue length
 o svsock
Socket used to accept ModelUpdate consumer (VisiDisplay) connect requests
 o workers
List of workers servering up ModelUpdates

Constructor Index

 o ModelServer(ConfigMgr)
Class constructor.

Method Index

 o run()
Listens for new client connections.

Variables

 o qlen
 private static final int qlen
Listen queue length

 o workers
 Vector workers
List of workers servering up ModelUpdates

 o svsock
 private ServerSocket svsock
Socket used to accept ModelUpdate consumer (VisiDisplay) connect requests

 o cm
 private ConfigMgr cm
Pointer to ConfigManager for this run

Constructors

 o ModelServer
 public ModelServer(ConfigMgr cm) throws IOException
Class constructor.

Parameters:
cm - the configuration manager containing all configuration information for this run
Throws: IOException
if any socket I/O error occurs

Methods

 o run
 public void run()
Listens for new client connections.

Overrides:
run in class Thread