Net::FCP::Tiny - A Tiny and incomplete interface to the Freenet Client Protocol (FCPv2)
use Net::FPC::Tiny; my $fcp = Net::FCP::Tiny->new( name => 'Freenet Munin Plugin', host => $ENV{FREENET_HOST}, port => $ENV{FREENET_PORT}, ); my $info = $fcp->array2hash($fcp->send_msg(<<'END')); GetNode WithPrivate=false WithVolatile=true EndMessage END print "Java is using ", $info->{"volatile.usedJavaMemory"}, " bytes of memory";
This is a tiny (~60 line) and stupid wrapper that talks the Freenet Client Protocol. It sets up a communication channel for you, and you can send messages by copy/pasting examples from the FCPv2 docs.
I wrote it for a munin plugin because Net::FCP was ancient, and AnyEvent::FCP hurt my brain.
Ævar Arnfjörð Bjarmason <avar@cpan.org>
Copyright 2010 Ævar Arnfjörð Bjarmason <avar@cpan.org>
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::FCP::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FCP::Tiny
CPAN shell
perl -MCPAN -e shell install Net::FCP::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.