![]() |
![]()
| ![]() |
![]()
NAMEXPC::Daemon - XML Procedure Call daemon class SYNOPSISuse XPC::Daemon; my $daemon = new XPC::Daemon; $daemon->add_procedure('localtime', sub { localtime }); my $pid = fork; die "$0: Unable to fork!\n" unless defined $pid; if ($pid) { print STDOUT $daemon->url, "\n"; print STDERR "$0: Forked child $pid.\n"; exit 0; } else { $daemon->run; exit 0; } DESCRIPTIONThis class is a generic XPC-over-HTTP server daemon. Use the "add_procedure" method to give it specific functionality. AUTHORGregor N. Purdy <gregor@focusresearch.com> COPYRIGHTCopyright (C) 2001 Gregor N. Purdy. All rights reserved. This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|