Windows Start Up
First you must start up your connection to your Internet Service Provider if not yet
connected. This applies to all types of connections: DialUp, DSL, ISDN, T1, etc.
Second you must have created a configuration file called "pserver.data". You can copy
the supplied sample "pserver.sampdata" and make any changes you may need. If you attempt
to start up without specifying a configuration file or have an invalid or corrupted
configuration file then the application will immediately terminate and post an error message.
From a "command screen" the PServer application can be started by changing your directory
to pserver and then executing the pserver batch command:
cd C:\pserver
pserver pserver.data
,where pserver.data is the name of the configuration file.
The contents of the psetup.bat file look as follows:
@ECHO OFF @ECHO Initiating the PServer Internet Proxy Server Application... DOSKEY SET PATHOLD=%PATH% SET CLASSPATHOLD=%CLASSPATH% SET mypathname=C:\pserver SET PATH=%mypathname%;%PATH% SET CLASSPATH=%mypathname%\NetRexxR.jar;%mypathname%\pserver.jar;%CLASSPATH% java -ms64M -cp %CLASSPATH% PServer %1 SET PATH=%PATHOLD% SET CLASSPATH=%CLASSPATHOLD% @ECHO OFF
Linux Start Up
You must have created a configuration file called "pserver.data". You can copy
the supplied sample "pserver.sampdata" and make any changes you may need.
If you attempt
to start up without specifying a configuration file or have an invalid or corrupted
configuration file then the application will immediately terminate and post an error message.
Now acquire "root" access and change directory to /usr/local/pserver/
Type
pserver pserver.data
,where pserver.data is the name of the configuration file.
The contents of the pserver script file look as follows:
#!/bin/bash # echo "...Executing PServer Internet Proxy Server..." javalib="j2sdk1.4.2" myclasspath=/usr/local/pserver/NetRexxR.jar:/usr/java/$javalib/jre/lib/rt.jar:/usr/local/pserver/pserver.jar echo "JAVA Lib is "$javalib echo "CLASSPATH is "$myclasspath echo "PATH is "$PATH echo "Parameters "$1 $2 $3 $4 java -ms64M -cp $myclasspath PServer $1 $2 $3 $4 echo "...PServer Internet Proxy Server has terminated..." exit 0
Note that the configuration file "pserver.data" is taken as an argument (%1). The JAVA virtual machine allocates 64 Megabytes of storage (java -ms64M ...). The CLASSPATH is set to access both supplied JAR files containing executable code.
Upon invocation of psetup, the main graphical window will open and cause the PServer
program to engage.
Go to the "Daemons" panel to check the port listening assignments. Change if necessary,
should you need to select a different port assignment or disable a protocol.
Go to the "Event Logging" panel and select your file and console logging if desired.
Also, you may set the tracing levels to be recorded in the log file.
Next, go to the "Tuning" panel to check your multitasking levels and buffer sizes.
The defaults are displayed. You may want to change these in the future to accommodate
a higher level of traffic and number of client computers in your network.
Now use the "Service" pulldown and choose "Start". The proxy will initialize and
is now ready for work.
[Return to User Guide Table of Contents]
[Return to Index]
[Return to Cullen Programming Home Page]
Copyright © Cullen Programming 1999, 2009