The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Padre::Swarm::Transport - Swarm network transport

SYNOPSIS

  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;
  }

DESCRIPTION

Generic class describing the interface for a Padre::Swarm::Transport

METHODS