ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/eg/simple_example_sender
(Generate patch)

Comparing AnyEvent-MP/eg/simple_example_sender (file contents):
Revision 1.2 by root, Fri Aug 28 21:22:12 2009 UTC vs.
Revision 1.3 by root, Mon Aug 31 13:18:06 2009 UTC

1#!/opt/bin/perl 1#!/opt/bin/perl
2use AnyEvent; 2use AnyEvent;
3use AnyEvent::MP; 3use AnyEvent::MP;
4use AnyEvent::MP::Global; 4use AnyEvent::MP::Global;
5 5
6initialise_node "eg_simple_sender"; 6initialise_node;
7 7
8my $find_timer = 8my $find_timer =
9 AnyEvent->timer (after => 0, interval => 1, cb => sub { 9 AnyEvent->timer (after => 0, interval => 1, cb => sub {
10 my $ports = AnyEvent::MP::Global::find "eg_receivers" 10 my $ports = AnyEvent::MP::Global::find "eg_receivers"
11 or return; 11 or return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines