HyperView.class & HyperConnecitonHandler.class
Or a tale of 2 Servers.

 
  
Static Central Server:

This is an instance of
HyperConnectionHandler.class

which is a highly optimized
"non blocking single process select"
based java.nio server. 

It listens to a port specified in
HyperDefs.class
In particular it references
HyperDefs.listenPort
It can also simultaniously listen to other ports



P2P Server
HyperView  screendump
HyperView is a double buffered
lightweight non Component
based graphics API and It runs as
TCP/IP client via
HyperExternalConnectionHandler.class
If it is enabled via its Preferences
screen, the HyperView also runs an instance of
HyperConnectionHandler.class
which listens on a random port
derived by
IncrementalPort.class
As such the View MUST report
which port it is listening on
when sending a Server connection
callback request. 

 
Compile Instructions
You must  first compile the HyperConnectionhandler.class and then the HyperView.class

MS Windows
#1 CD to the appropriate directory
#2 type
"compilef"
  compilef is a script "compilef.bat" and executes the following command,
   java -classpath .;..\hyperview299; -Xms32M -Xmx32M HyperConnectionHandler
 compilef literally means "compile frame" for the stand alone or Java(TM)
 application version. HyperView is an Applet and when running
 as an application a java.awt.frame provides the interfaces
 normally provided to an Applet by a Web browser.



Linux
#1 CD to the appropriate directory
#2 type
"./compileu"
  Compileu is a script (compile unix) and executes the following command,
java -classpath .:../hyperview299: -Xms32M -Xmx32M HyperConnectionHandler

   If the script doesn't execute be sure you have the compileu execute permission set and if not use the chmod command
"chmod 755 compileu".



  
Run Instructions

Run the Client GUI HyperView.class

MS Windows:

  cd to the hyperview299 directory and type "run"
  This exectures the file "run.bat"
UNIX:
  cd to the hyperview299 directory and type "./runu"
  This executes the file "runu"

Run the Central Server: HyperConnectionHanler.class

MS Windows:
HyperConnectionHandler.class
  cd to the nio_server directory and type "run"

UNIX:
  cd to the nio_server directory and type "./runu"