[system] / trunk / xmlrpc / daemon / ww_daemon.pl Repository:
ViewVC logotype

View of /trunk/xmlrpc/daemon/ww_daemon.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 366 - (download) (as text) (annotate)
Sun Jun 16 17:22:06 2002 UTC (17 years, 1 month ago) by gage
File size: 1681 byte(s)
Minor abstractions added.  The port is now defined by $PORT at the
top of the code.

    1 #!/usr/bin/perl -w
    2 
    3 # Copyright (C) 2001 Michael Gage
    4 
    5 ###############################################################################
    6 # The initial code simply initializes variables, defines addresses
    7 # for directories, defines some simple subroutines responders used in debugging
    8 # and makes sure that the appropriate CPAN library modules
    9 # are available.  The main code begins below that with the initialization
   10 # of the PGtranslator5 module.
   11 ###############################################################################
   12 
   13 use strict;
   14 use sigtrap;
   15 use Carp;
   16 #use lib '/u/gage/xmlrpc/daemon';
   17 use lib '/Users/gage/webwork/xmlrpc/daemon';
   18 use Webwork;
   19 use Frontier::Daemon_ww;
   20 
   21 ###############################################################################
   22 # This sections starts up the WeBWorK daemon at http://webwork-db.math.rochester.edu:8005/
   23 ###############################################################################
   24 my $PORT = 8089;
   25 print "starting daemon on port $PORT\n";
   26 new Frontier::Daemon_ww(
   27     LocalPort => $PORT,
   28     methods => {
   29   'echo'                    => \&Webwork::echo,
   30   'echo2'                   => \&Webwork::echo2,
   31   'renderProblem'       => \&Webwork::renderProblem,
   32   'readFile'          => \&Webwork::readFile,
   33   'listLib'                 => \&Webwork::listLib,
   34   'quit'            =>  \&Webwork::xmlquit,
   35   'hello'                   =>  \&Webwork::hello
   36 });
   37 
   38 print "daemon stopped\n";
   39 
   40 ###############################################################################
   41 # The WeBWorK daemon would exit through here (if I could figure out how to
   42 # shut it down remotely. :-) )
   43 ###############################################################################
   44 
   45 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9