chickadee » zmq » socket-option-set!

socket-option-set! socket option valueprocedure

Destructively set option (a symbol) of socket to value (type depending on the respective option). The following options are available:

hwm
high water mark (integer, maximum number of outstanding messages)
swap
disk offload size (integer, bytes)
affinity
I/O thread affinity (integer, bitmap)
identity
socket identity (string, max. 255 bytes)
subscribe
add message filter (string, message prefix)
unsubscribe
remove message filter (string, message prefix)
rate
multicast data rate (integer, kilobits per second)
recovery-ivl
multicast recovery interval (integer, seconds)
mcast-loop
multicast loopback (boolean)
sndbuf
kernel transmit buffer size (integer, bytes, 0 for OS default)
rcvbuf
kernel receive buffer size (integer, bytes, 0 for OS default)

For more detailed descriptions of the options, see the documentation for zmq_setsockopt.