ZMQ::Raw - Low-level API for ZMQ
$bytes_written = zmq_send( $buffer, $size, $flags )
If $size is set to -1, then the length is automatically calculated from $buffer. Default value is -1, but be careful, if you pass 0, then it's not the same as passing undef
$size
# automatically calculate zmq_send( $buf, undef, $flags ); # write 0 bytes! zmq_send( $buf, 0, $flags );
Calls zmq_poll on the given items as specified by @list_of_hashrefs. Each element in @list_of_hashrefs should be a hashref containing the following keys:
Contains the ZMQ::Raw::Socket object to poll.
Contains the file descriptor to poll. Either one of socket or fd must be specified. If both are specified, 'socket' will take precedence.
A bitmask of ZMQ_POLLIN, ZMQ_POLLOUT, ZMQ_POLLERR
Callback that gets invoked. Takes no arguments.
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.