Hi Jorgeta,

If you are reading this you have successfully unzip and untar the files.

This tar.gz includes both the source files (.java) and the bytecode files 
(.class). In addition includes some sample files to be send that represent
the VIMS, Voice and SIS data. I assume you have already installed the java DK.
If no then you can find it at: 
http://www.freebsd.org/java

You can simply run the program with:

java MainApp

The first interesting component is the configuration file (config.txt). It is 
divided into 3 parts (ignore the GPS part). The parameters appearing in each 
of the application section mean the following:

Status: If Enabled the node can both send and receive data. If Disabled the 
node can only receive data.
NumberOfCallPerHour: How many calls (VIMS, SIS or Voice) this node will make
during an hour.
CallBook: The number indicates the amount of entries. The lines afterwards is
the name of the name/the ip address of the node.
Files: The number indicates the amount of files that this node could send. The
lines afterwards indicate the filename/size in bytes.

Note that the combinations between nodes and files can be lower, higher or 
equal to the maximum number of calls per hour, without affecting the system.

So your test scenarios will be specified through the config file. You do NOT
have to compile the application if you are only changing the config.txt file

In addition we send updates to you every one second. If you want to change that
you have to go to the Constants.java file, find the Interval variable and 
change it accordingly. The value is in seconds.
Then you have to do the following:

rm *.class
javac MainApp.java

Finally one critical thing is that you have to create the following directories
where you will run the executable. 

dataout: Where the files to be send by this node can be found (check also the
config.txt file about that)
datain/dataout; Where the received files will be stored.

Good luck!!!

If you need anything do not hesitate to call me at:

x8-1326 or drop me an e-mail.

Thanxs.


Yannis


addn. info about config file (Parag)

1."Interval" is the time period for the frequency with which the updates from the receiver are sent to the vizd daemon

2. For the Voice appln, "Rates" signify the number of chunks a 4000byte voice-file part is broken into. eg: 4 signifies 4*1000byte chunks sent every 1/4 seconds

3. SilenceInterval is the time period for which a sender or receiver talks during the full-duplex voice call.



================================================

Syntax for invoking the program for sending images:

%java TCPSend IPAddr PortNo Filename

IPAddr:  IP Address or hostname of the destination machine
PortNo:  The Port number for sending the file at the destination machine
Filename:The name of the file to be sent

