ZMQ::Message - ZMQ Message Object
use ZMQ; my $msg = ZMQ::Message->new( "Hello World!" ); my $data = $msg->data(); my $size = $msg->size(); my $rv = $msg->copy( $src ); my $rv = $msg->move( $src ); my $rv = $msg->close();
A ZMQ::Context object represents a message to be passed over a ZMQ::Socket.
Creates a new message. If $msg is passed, calls zmq_msg_init_data(). Othewise zmq_msg_init() is called
$msg
zmq_msg_init_data()
zmq_msg_init()
Retrieves the data in message
Retrieves the size of the data in message
Copies contents of $src to $msg
$src
Moves contents of $src to $msg
Terminates and fress $msg's underlying data structure.
To install ZMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ
CPAN shell
perl -MCPAN -e shell install ZMQ
For more information on module installation, please visit the detailed CPAN module installation guide.