Net-Daemon

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
                               $sock->error());
                  $sock->close();
                  return;
              }
          }
      }
 
      package main;
 
      my $server = Calculator->new({'pidfile' => 'none',
                                    'localport' => 2000}, \@ARGV);
      $server->Bind();
 
KNOWN PROBLEMS
    Most, or even any, known problems are related to the Sys::Syslog module
    which is by default used for logging events under Unix. I'll quote some
    examples:
 
    Usage: Sys::Syslog::_PATH_LOG at ...
        This problem is treated in perl bug 20000712.003. A workaround is
        changing line 277 of Syslog.pm to

lib/Net/Daemon.pm  view on Meta::CPAN

240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
sub new ($$;$) {
    my ( $class, $attr, $args ) = @_;
    my ($self) = $attr ? \%$attr : {};
    bless( $self, ( ref($class) || $class ) );
 
    my $options = ( $self->{'options'} ||= {} );
    $self->{'args'} ||= [];
    if ($args) {
        my @optList = map { $_->{'template'} } values( %{ $class->Options() } );
 
        local @ARGV = @$args;
        if ( !Getopt::Long::GetOptions( $options, @optList ) ) {
            $self->Usage();
        }
        @{ $self->{'args'} } = @ARGV;
 
        if ( $options->{'help'} ) {
            $self->Usage();
        }
        if ( $options->{'version'} ) {
            print STDERR $self->Version(), "\n";

lib/Net/Daemon.pm  view on Meta::CPAN

1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
                           $sock->error());
              $sock->close();
              return;
          }
      }
  }
 
  package main;
 
  my $server = Calculator->new({'pidfile' => 'none',
                                'localport' => 2000}, \@ARGV);
  $server->Bind();
 
 
=head1 KNOWN PROBLEMS
 
Most, or even any, known problems are related to the Sys::Syslog module
which is by default used for logging events under Unix. I'll quote some
examples:
 
=over



( run in 0.459 second using v1.01-cache-2.11-cpan-95122f20152 )