head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2003.03.26.12.06.45;	author gang;	state Exp;
branches;
next	;


desc
@@


1.1
log
@*** empty log message ***
@
text
@1. About
  These files are temporal test codes made by 'gang(at)user.kldp.net'
  for the design of PISD. They are not useful to any object
  but just test, and may have some bugs.
  To make the test programs, the LINUX system should have MySQL
  server, Perl and Snacc packages.
  
  License: GNU General Public Licese version 2

2. How to make
2.1 MySQL database and tables
  Make a MySQL user named 'admin' with null password. If you want
  other user name of MySQL, you can change the user at 'Makefile'.
  Make a database named 'pisd' and tables defined in 'htmlindex.sql'.
  Following are the commads. You must have write privilege to MySQL
  server.

  $ mysqladmin create pisd
  $ mysql < htmlindex.sql

2.2 Make the test programs
  To make test programs, just 'make'.

  $ make

  Then, three programs, 'r_update_start', 's_update_start', 's_daemon'
  are created.
  'make clean' will delete all object files and other created files.
  'make tag' will make 'tags' which helps source code analysis.

3. How to run
  'p.pl' is a perl script which generates service list in MySQL.
  Move to your home page, or other directory which have .html files.
  Then, run 'p.pl', and the index of html files are inserted into
  MySQL. These index are the service list of a realm.

  's_daemon' is the PISD server daemon program. It just communicate
  only one update procedure and exits.

  $ s_daemon &

  'r_update_start' sends PISD messages to PISD server to update
  its service list. The PISD server name must be given as an argument.

  $ r_update_start localhost

  Now, you can see what has happen in the consol. The messages sent
  and received are scrolled up in screen. You can also see what has
  been updated in 'serviceindex' table of MySQL server.

  's_update_start' is the updater client of PISD server to PISD server.
  The functions are nearly the same of r_update_start.

  $ s_daemon &
  $ s_update_start localhost

  You can see service list of the realm named 'rserviceindex' are
  updated in 'serviceindex' table.
@
