Server Usage

Compilation

The SADB server can only be compiled on POSIX systems. If using windows, both cygwin and mingw could be used to obtain a POSIX environment capable of compiling the SADB server. The only requirement which should require installation is Armadillo.

Compilation

The server can be compiled directly with:
# make Server
The SADBCTL tool should also be compiled to enable the administration functions of the web interface:
# make
# make SADBCTL

Running the Server

After compilation, the server can be started by issuing the following command:
# ./Server
The server will open port 8082 for the web-interface and port 8081 for the database transactions by default. The web interface can then be accessed at localhost:8080 from any web browser on the local machine.

To manually specify port numbers, the following command line arguments can be used:
# ./Server -p [SADBPort] -http [HTTPPort]

Stopping the Server

There is no elegant way to stop the server, so CTRL+C should be used (or any other standard way of sending a kill signal).

Using the SADBCTL Tool

The SADBCTL tool can be useed to control the server from a command line interface. It can be used on the same machine as the server or on a remote machine.

# ./SADBCTL -h
Usage:	SADBCTL [-p ServerPort] [-a ServerAddress] [-f Filename] [-h]
        [-start Percentage] [-end Percentage] [-t DataType] -Action
 Action is one of
  -reset: Reset SADB server
  -load	: Load content from disk
    requires -f 
    optional -start 
    optional -end 
  -dump	: Dump content of SADB to disk
    requires -f 
  -csv	: Create object with initial value from CSV file
    requires -f  and -t 
  -timecsv	: Create object values from time-coded CSV file
    requires -f  and -t 
  -stringtable	: Create a StringTable object from CSV file
    requires -f