|
Daemon::Generic::Event - Generic daemon framework with Event.pm |
Daemon::Generic::Event - Generic daemon framework with Event.pm
use Daemon::Generic::Event;
@ISA = qw(Daemon::Generic::Event);
sub gd_preconfig {
# stuff
}
Daemon::Generic::Event is a subclass of the Daemon::Generic manpage that predefines some methods:
gd_run()gd_run_body() if there is a gd_run_body().
Call Event::loop().
gd_setup_signals()gd_reconfig_event().
Bind SIGINT to call gd_quit_event().
To use Daemon::Generic::Event, you have to provide a gd_preconfig()
method. It can be empty if you have a gd_run_body().
Set up your own events in gd_preconfig() and gd_postconfig().
If you have a gd_run_body() method, it will be called once per
second or every gd_interval() seconds if you have a gd_interval()
method. Unlike in the Daemon::Generic::While1 manpage, gd_run_body() should
not include a call to sleep().
If you need high-speed internet services (T1, T3, OC3 etc), please send me your request-for-quote. I have access to very good pricing: you'll save money and get a great service.
Copyright(C) 2006 David Muir Sharnoff <muir@idiom.com>.
This module may be used and distributed on the same terms
as Perl itself.
|
Daemon::Generic::Event - Generic daemon framework with Event.pm |