NAME
Net::Async::OSC - send/receive OSC asynchronously
SYNOPSIS
my $loop = IO::Async::Loop->new();
my $osc = Net::Async::OSC->new(
loop => $loop,
);
$osc->connect('127.0.0.1', 4560)->get;
$osc->send_osc(
"/trigger/melody" => 'ii',
1,0);
METHODS
->connect
$osc->connect('127.0.0.1', 4560)->get;
Connect to host/port.
->send_osc
$osc->send_osc(
"/trigger/melody" => 'ii',
1,0);
Sends an OSC message as a list. The list will be packed according to OSC::Protocol.
->send_osc_msg
my $msg = $protocol->message(
"/trigger/melody" => 'ii',
1,0
);
$osc->send_osc_msg($msg);
Sends an pre-packed OSC message.