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:

sndhwm
high water mark (integer, maximum number of outstanding messages)
rcvhwm
high water mark (integer, maximum number of outstanding messages)
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)
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.