The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
#!/usr/bin/perl
my $config = RPC::Serialized::Config->new( shift @ARGV );
my $class = $config ->server_class;
eval "require $class"
or die "Failed to load $class: $@" ;
my $server = $class ->new( $config ->data_serializer );
if ( $config ->acl_path ) {
my $authz = RPC::Serialized::AuthzHandler::ACL->new( $config ->acl_path );
$server ->authz_handler( $authz );
}
while ( my ( $h , $c ) = each %{ $config ->handlers } ) {
$server ->handler( $h , $c );
}
$server ->process;
|