| Revision: | 1.6 |
| Committed: | Tue Mar 6 13:33:53 2012 UTC (14 years, 6 months ago) by root |
| Branch: | MAIN |
| CVS Tags: | rel-2_02, rel-2_01, rel-2_0, HEAD |
| Changes since 1.5: | +1 -1 lines |
| Error occurred while calculating annotation data. | |
| Log Message: | *** empty log message *** |
| # | Content |
|---|---|
| 1 | #!/opt/bin/perl |
| 2 | |
| 3 | use AnyEvent; |
| 4 | use AnyEvent::MP; |
| 5 | |
| 6 | configure nodeid => "eg_sender/%u", seeds => ["*:4041"]; |
| 7 | |
| 8 | my $guard = db_mon eg_receivers => sub { |
| 9 | my ($family, $keys) = @_; |
| 10 | return unless %$family; |
| 11 | |
| 12 | # now there are some receivers, send them a message |
| 13 | snd $_ => test => time, keys %$family |
| 14 | for keys %$family; |
| 15 | }; |
| 16 | |
| 17 | AnyEvent->condvar->recv; |
| 18 |