Class prominence.chat.ChatSystemServer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class prominence.chat.ChatSystemServer

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----prominence.msg.GenericServer
                   |
                   +----prominence.chat.ChatSystemServer

public class ChatSystemServer
extends GenericServer
An extension to the GenericServer class that uses the ChatSystemHandler class to process new clients.
See Also:
ChatsystemHandler, GenericServer

Constructor Index

 o ChatSystemServer(int)
Creates a new ChatSystemServer that listens on the specified TCP port.

Method Index

 o main(String[])
Starts a new ChatSystemServer listening on the specified port.
 o run()
The main server thread enters this method, accepts new client connections and launches ChatSystemHandlers to process them.

Constructors

 o ChatSystemServer
  public ChatSystemServer(int port) throws IOException
Creates a new ChatSystemServer that listens on the specified TCP port.
Parameters:
port - The port to listen on
Throws: IOException
Occurs if a ServerSocket could not be created on the port.
See Also:
GenericServer

Methods

 o run
  public void run()
The main server thread enters this method, accepts new client connections and launches ChatSystemHandlers to process them.
Overrides:
run in class GenericServer
See Also:
ChatSystemHandler
 o main
  public static void main(String args[]) throws IOException
Starts a new ChatSystemServer listening on the specified port.

Syntax:

  java prominence.chat.ChatSystemServer <port>
Throws: IOException
occurs if the ServerSocket could not be created.

All Packages  Class Hierarchy  This Package  Previous  Next  Index