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.
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.
my $pkt_debug = $msg->dump;
Provides a string containing a dump of universal packet attributes. Intended for debugging.
Paul Fenwick <email@example.com>
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.