Padre::Swarm::Transport - Swarm network transport
my $t = Padre::Swarm::Transport->new(); $t->subscribe_channel( 65000 ); $t->start; my $data = 'Hello world!'; $t->tell_channel( 65000 => $data ); my @incoming; my @channels = $t->poll(1); foreach my $channel ( @channels ) { my ($payload,$frame) = $t->receive_from_channel( $channel ); next if $frame->{address} = $MY_ADDRESS; push @incoming , $payload; }
Generic class describing the interface for a Padre::Swarm::Transport
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.