| 1 | # ABSTRACT: Peer-to-Peer Publish/Subscribe Network of Objects | ||
| 2 | package Net::Object::Peer::Emitter; | ||
| 3 | |||
| 4 | 20 | ▶ | use 5.10.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 20 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 20 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 20 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 20 | our $VERSION = '0.06'; # TRIAL | |
| 11 | |||
| 12 | 20 | with 'BeamX::Peer::Emitter'; | |
| 13 | |||
| 14 | 58 | ▶ | around subscribe => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 58 | my $orig = shift; | |
| 17 | |||
| 18 | 58 | push @_, class => 'Net::Object::Peer::Listener'; | |
| 19 | |||
| 20 | 58 | &$orig; | |
| 21 | 20 | }; | |
| 22 | |||
| 23 | 20 | 1; | |
| 24 | |||
| 25 | # | ||
| 26 | # This file is part of Net-Object-Peer | ||
| 27 | # | ||
| 28 | # This software is Copyright (c) 2016 by Smithsonian Astrophysical Observatory. | ||
| 29 | # | ||
| 30 | # This is free software, licensed under: | ||
| 31 | # | ||
| 32 | # The GNU General Public License, Version 3, June 2007 | ||
| 33 | # | ||
| 34 | |||
| 35 | =pod | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | Net::Object::Peer::Emitter - Peer-to-Peer Publish/Subscribe Network of Objects | ||
| 40 | |||
| 41 | =head1 VERSION | ||
| 42 | |||
| 43 | version 0.06 | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | A B<Net::Object::Peer::Emitter> object is used by L<Net::Object::Peer> | ||
| 48 | to manage outgoing communications with other nodes. It is derived from | ||
| 49 | L<BeamX::Peer::Emitter>. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Diab Jerius <djerius@cpan.org> | ||
| 54 | |||
| 55 | =head1 COPYRIGHT AND LICENSE | ||
| 56 | |||
| 57 | This software is Copyright (c) 2016 by Smithsonian Astrophysical Observatory. | ||
| 58 | |||
| 59 | This is free software, licensed under: | ||
| 60 | |||
| 61 | The GNU General Public License, Version 3, June 2007 | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | __END__ | ||