/usr/share/doc/libpoe-component-ikc-perl/examples/lclient2 is in libpoe-component-ikc-perl 0.2302-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/perl -w
use strict;
use lib qw(blib/lib blib/arch);
use POE::Component::IKC::ClientLite;
$|++;
my @connections;
my $name=$ARGV[0]||0;
print "$$: Connecting $name\n";
my $remote=create_ikc_client(
port=>31337,
name=>"lclient2-$$-$name",
timeout=>5,
);
die "--$POE::Component::IKC::ClientLite::error" unless $remote;
for (0..3)
{
my $ret;
$ret=$remote->call('timeserver/time', 'PING')
or print '-'.$remote->name().$POE::Component::IKC::ClientLite::error;
print '(', $remote->name(), " $ret $name)\n" if $ret;
}
|