The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pan::Multicast - data distribution via multicast

SYNOPSIS

use Pan::Multicast;

my $mcast = Pan::Multicast->new( addr => '255.0.0.2:8360', iface => 'eth1' );

## sender
$mcast->send            ## default
( 
    file => '/foo/baz',
    ttl  => 1,          ## 1
    repeat => 2,        ## 2
    buffer => 4096,     ## MAXBUF
);

## receiver
$mcast->recv( repo => '/foo/bar' );