Padre::Plugin::Swarm::Transport::Local - Multicast swarm message bus
my $t = Padre::Plugin::Swarm::Transport::Local->new(); $t->reg_cb('connect' , sub { printf "Transport %s connected", shift } ); $t->reg_cb('recv', \&incoming_message ); $t->reg_cb('disconnect', sub { warn "Disconnected" } ); $t->enable;
To install Padre::Plugin::Swarm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre::Plugin::Swarm
CPAN shell
perl -MCPAN -e shell install Padre::Plugin::Swarm
For more information on module installation, please visit the detailed CPAN module installation guide.