3 # Net::Server implementation for Monkeysphere Validation Agent
4 # Copyright © 2010 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 { package Net::Server::MSVA;
21 use base qw(Net::Server::Fork);
24 # guarantee initial failure -- this will be cleared after we bind
30 # if we got here, then the binding was successful.
32 $msva->post_bind_hook($self, @_);
37 $msva->pre_loop_hook($self, @_);
45 # FIXME: this is an override of an undocumented interface of
46 # Net::Server. it would be better to use a documented hook, if
47 # https://rt.cpan.org/Public/Bug/Display.html?id=55485 was resolved
52 $msva->child_dies($pid, $self);
53 $self->SUPER::delete_child($pid, @_);
64 if (exists $options->{msva}) {
65 $msva = $options->{msva};
67 $self->SUPER::run(@_);