NAME
ZMQ::Raw - Low-level API for ZMQ
FUNCTIONS
zmq_init
zmq_term
zmq_msg_close
zmq_msg_data
zmq_msg_init
zmq_msg_init_data
zmq_msg_init_size
zmq_msg_size
zmq_msg_move
zmq_msg_copy
zmq_bind
zmq_close
zmq_connect
zmq_getsockopt
zmq_recvmsg
zmq_send
$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
# automatically calculate
zmq_send( $buf, undef, $flags );
# write 0 bytes!
zmq_send( $buf, 0, $flags );
zmq_send_as
zmq_sendmsg( $msg_object )
zmq_setsockopt
zmq_socket
zmq_poll( \@list_of_hashrefs, $timeout )
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:
- socket
-
Contains the ZMQ::Raw::Socket object to poll.
- fd
-
Contains the file descriptor to poll. Either one of socket or fd must be specified. If both are specified, 'socket' will take precedence.
- events
-
A bitmask of ZMQ_POLLIN, ZMQ_POLLOUT, ZMQ_POLLERR
- callback
-
Callback that gets invoked. Takes no arguments.