RiverRat  - An MIT iCampus project http://web.mit.edu/riverrat/

Main Page | Software Documentation | Hardware Documentation | People | Contact | Wiki

Main Page | Class Hierarchy | Class List | File List | Class Members

riverrat.Server Class Reference

Finished prototype - The Server class spawns new Threads with BasicServers (or subclasses) to handle clients. More...

List of all members.

Static Public Member Functions

void printAvailableServerTypes ()
 Prints available server types.

void printUsage ()
 Prints help information for Server and exits.

void main (String args[])
 Test case.


Static Protected Attributes

int port = 8080
 Port to listen for connections on.

int numthreads = 5
 Number of threads to spawn.

Vector threads
 Vector of worker threads.

ServerSocket serverSocket
 Server Socket.


Detailed Description

Finished prototype - The Server class spawns new Threads with BasicServers (or subclasses) to handle clients.

Definition at line 11 of file Server.java.


Member Function Documentation

void riverrat.Server.main String  args[]  )  [static]
 

Test case.

Spawns a new Thread with a given type for each client socket that is opened.

Definition at line 66 of file Server.java.

References riverrat.Server.printUsage(), riverrat.BasicServer.setSocket(), and riverrat.Server.threads.

void riverrat.Server.printUsage  )  [static]
 

Prints help information for Server and exits.

Definition at line 46 of file Server.java.

References riverrat.Server.printAvailableServerTypes().

Referenced by riverrat.Server.main().


The documentation for this class was generated from the following file:  

Brought to you by the RiverRat team.