Changes for version 0.06 - 2017-01-26 (TRIAL RELEASE)
- API CHANGE
- The event emitted when a listener unsubscribes from an emitter is now named "unsubscribed" rather than "unsubscribe". it indicates a state, not a command to unsubscribe.
- BEHAVIOR CHANGE
- Events which will be emitted *must* be registered, either via the default_events() class method, via the events attribute in the constructor, or via the events() object method. Subscriptions will fail if the emitter does not produce the event, and attempts to emit an event will fail if the emitter does not produce the event. The emits_events() method may be used to query an emitter for its events.
- ENHANCEMENT
- The prefix for event handler methods may now be specified either on a per object basis (via the event_handler_prefix) attribute, or on a per class basis via the default_event_handler_prefix class method.
Changes for version 0.05 - 2017-01-19 (TRIAL RELEASE)
- BUILD
- add missing dependency on stricturesa
Changes for version 0.04 - 2017-01-19 (TRIAL RELEASE)
- ENHANCEMENT
- New method: Peer::detach
- Upon destruction, objects additionally emit a 'detach' event.
- Net::Object::Peer::Subscriptions: new methods: find, nelem
- Peer::subscriptions now takes arguments which are passed on to find
- New role Peer::Ephemeral - instructs Peer to take a strong reference to the peer.
- Most classes now track the reference address of an emitter in case the emitter has been proxied. See the Cookbook for a usage.
Changes for version 0.03 - 2016-12-27 (TRIAL RELEASE)
- BUG FIX
- DEMOLISH was implemented by role, rather than being modified.
Changes for version 0.02 - 2016-12-26 (TRIAL RELEASE)
- BUG FIX
- Listener didn't properly weaken reference to peer object
- DOCUMENTATION
- better synopsis
Changes for version 0.01 - 2016-12-26 (TRIAL RELEASE)
Documentation
Recipes for Net::Object::Peer
Modules
Peer-to-Peer Publish/Subscribe Network of Objects
Peer-to-Peer Publish/Subscribe Network of Objects
Proxy role for ephemeal peers
An event emitted by a Net::Object::Peer node
Net::Object::Peer specfic Listener
An object which contains a reference address
A Net::Object::Peer Subscription
A Net::Object::Peer Subscription for an ephemeral peer
A collection of Net::Object::Peer::Subscriptions
Types for Net::Object::Peer
The payload for a Net::Object::Peer unsubscription event
Examples
- examples/Loop.pm
- examples/LoopQuote.pm
- examples/LoopSafe.pm
- examples/LoopWrap.pm
- examples/loop-quote.pl
- examples/loop-wrap.pl
- examples/loop.pl
- examples/synopsis.pl
- examples/translate/Node.pm
- examples/translate/NodeA.pm
- examples/translate/NodeB.pm
- examples/translate/TranslateBtoA.pm
- examples/translate/TranslateBtoAEphemeral.pm
- examples/translate_ephemeral.pl
- examples/translate_in_scope.pl
- examples/translate_out_of_scope.pl
- examples/translate_override.pl