Crossfire JXClient, Trunk
Static Public Member Functions | Package Functions | Package Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Server Class Referenceabstract
Inheritance diagram for Server:
Inheritance graph
Collaboration diagram for Server:
Collaboration graph

Static Public Member Functions

static void main (String args[]) throws Exception
 

Package Functions

abstract void runServer () throws Exception
 
 Server (int port, int backlog, boolean secure) throws Exception
 

Package Attributes

ServerSocketChannel ssc
 
SSLContext sslContext = null
 

Private Member Functions

void createSSLContext () throws Exception
 

Static Private Member Functions

static void checkArgs (int i, int len)
 
static Server createServer (String args[]) throws Exception
 
static void usage ()
 

Static Private Attributes

static int BACKLOG = 1024
 
static int PORT = 8000
 
static boolean SECURE = false
 

Detailed Description

The main server base class.

This class is responsible for setting up most of the server state before the actual server subclasses take over.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 56 of file Server.java.

Constructor & Destructor Documentation

◆ Server()

Server.Server ( int  port,
int  backlog,
boolean  secure 
) throws Exception
package

Definition at line 65 of file Server.java.

References createSSLContext(), and ssc.

Here is the call graph for this function:

Member Function Documentation

◆ checkArgs()

static void Server.checkArgs ( int  i,
int  len 
)
staticprivate

Definition at line 164 of file Server.java.

References usage().

Referenced by createServer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createServer()

static Server Server.createServer ( String  args[]) throws Exception
staticprivate

Definition at line 124 of file Server.java.

References BACKLOG, checkArgs(), PORT, SECURE, server(), and usage().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createSSLContext()

void Server.createSSLContext ( ) throws Exception
private

Definition at line 82 of file Server.java.

References sslContext.

Referenced by Server().

Here is the caller graph for this function:

◆ main()

static void Server.main ( String  args[]) throws Exception
static

Definition at line 170 of file Server.java.

References createServer(), server(), and usage().

Here is the call graph for this function:

◆ runServer()

abstract void Server.runServer ( ) throws Exception
abstractpackage

Reimplemented in BP, N1, BN, B1, and N2.

◆ usage()

static void Server.usage ( )
staticprivate

Definition at line 101 of file Server.java.

References BACKLOG, and PORT.

Referenced by checkArgs(), createServer(), and main().

Here is the caller graph for this function:

Member Data Documentation

◆ BACKLOG

int Server.BACKLOG = 1024
staticprivate

Definition at line 62 of file Server.java.

Referenced by createServer(), and usage().

◆ PORT

int Server.PORT = 8000
staticprivate

Definition at line 61 of file Server.java.

Referenced by createServer(), and usage().

◆ SECURE

boolean Server.SECURE = false
staticprivate

Definition at line 63 of file Server.java.

Referenced by createServer().

◆ ssc

ServerSocketChannel Server.ssc
package

◆ sslContext

SSLContext Server.sslContext = null
package

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