Attempt to send to data bytes of data to zeromq socket.
sock - the socket to receive from.
data - data to send - either string or uint8 type.
flags - optional flags to pass to send
count - number of bytes written to socket, or -1 on error.
See also: zmq_socket.
Package: zeromq