Exobrain::Message
version 1.01
Top-level role for all exobrain messages.
payload size => ( isa => 'Int' );
Convenience method which sets the 'payload' trait on an attribute, as well as marking it as 'ro' and required by default (these can be overridden).
my $namespace = $message->namespace;
Provides the namespace of the message type in question. By default this is the class name with the Exobrain prefix stripped, but individual message classes are free to define their own namespaces.
Exobrain
my $data = $message->data;
Messages automatically create a data method (needed for transmitting over the exobrain bus) by tallying payload attributes.
Sends the message across the exobrain bus. If no socket is provided, the one from the exobrain object (if we were built with one) is used.
This method is invoked automatically unless the nosend option is used when the message was created.
nosend
This generates a warning (and does NOT send the packet) if the _sent flag on the message is set. This flag is set automatically after sending.
_sent
my $pkt_debug = $msg->dump;
Provides a string containing a dump of universal packet attributes. Intended for debugging.
Paul Fenwick <pjf@cpan.org>
This software is copyright (c) 2014 by Paul Fenwick.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Exobrain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Exobrain
CPAN shell
perl -MCPAN -e shell install Exobrain
For more information on module installation, please visit the detailed CPAN module installation guide.