[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 279 - (download) (as text) (annotate)
Fri May 17 21:44:04 2002 UTC (17 years, 1 month ago) by gage
File size: 1623 byte(s)
Experimental xmlrpc WeBWorK webservices

    1 #!/usr/local/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 Webwork;
   18 use Frontier::Daemon_ww;
   19 
   20 ###############################################################################
   21 # This sections starts up the WeBWorK daemon at http://webwork-db.math.rochester.edu:8005/
   22 ###############################################################################
   23 
   24 print "starting daemon on port 8089\n";
   25 new Frontier::Daemon_ww(
   26     LocalPort => 8089,
   27     methods => {
   28   'echo'                    => \&Webwork::echo,
   29   'echo2'                   => \&Webwork::echo2,
   30   'renderProblem'       => \&Webwork::renderProblem,
   31   'readFile'          => \&Webwork::readFile,
   32   'listLib'                 => \&Webwork::listLib,
   33   'quit'            =>  \&Webwork::xmlquit,
   34   'hello'                   =>  \&Webwork::hello
   35 });
   36 
   37 print "daemon stopped\n";
   38 
   39 ###############################################################################
   40 # The WeBWorK daemon would exit through here (if I could figure out how to
   41 # shut it down remotely. :-) )
   42 ###############################################################################
   43 
   44 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9