=head1 NAME

ZeroMQ::Message - A 0MQ Message object

=head1 SYNOPSIS

  use ZeroMQ qw/:all/;
  
  my $cxt = ZeroMQ::Context->new;
  my $sock = ZeroMQ::Socket->new($cxt, ZMQ_REP);
  my $msg = ZeroMQ::Message->new($text);
  $sock->send($msg);
  my $anothermsg = $sock->recv;

=head1 DESCRIPTION

A C<ZeroMQ::Message> object represents a message
to be passed over a C<ZeroMQ::Socket>.

=head1 METHODS

=head2 new

Creates a new C<ZeroMQ::Message>.

Takes the data to send with the message as argument.

=head2 size

Returns the length (in bytes) of the contained data.

=head2 data

Returns the data as a (potentially binary) string.

=head1 SEE ALSO

L<ZeroMQ>, L<ZeroMQ::Socket>, L<ZeroMQ::Context>

L<http://zeromq.org>

L<ExtUtils::XSpp>, L<Module::Build::WithXSpp>

=head1 AUTHOR

Steffen Mueller, E<lt>smueller@cpan.orgE<gt>

=head1 COPYRIGHT AND LICENSE

The ZeroMQ module is

Copyright (C) 2010 by Steffen Mueller

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.0 or,
at your option, any later version of Perl 5 you may have available.

=cut
