Set a socket option on a zeromq socket.
sock - the socket to connect.
optionid - the setsockopt option to set.
value - the value to set.
Known valid optionids are:
ZMQ_SUBSCRIBESubscribe to incoming messages matching the value. The value is either a string or a uint8 array that must match the start of any incoming message
ZMQ_UNSUBSCRIBEUnsubscribe from incoming messages
ZMQ_CONNECT_TIMEOUTSet timeout for connect calls
ZMQ_IDENTITY or ZMQ_ROUTING_IDSet the identity of a socket (string or uint8 data)
ZMQ_RATESet the multicast data rate
ZMQ_PRIORITYSet the socket priority (linux only)
ZMQ_BACKLOGSet the queue length for incomming connections
ZMQ_SOCKS_PROXYSet the socks5 proxy value (string)
ZMQ_CURVE_SERVERSet whether socket is a curve server (1) or not (0)
ZMQ_CURVE_PRIVATEKEYSet the curve socket private key (string)
ZMQ_CURVE_PUBLICKEYSet the curve socket public key (string)
ZMQ_CURVE_SERVERKEYSet the curve socket public key (string)
ZMQ_PLAIN_SERVERSet whether socket server will use plain authentication (1) or not (0)
ZMQ_PLAIN_USERNAMESet the plain socket username (string)
ZMQ_PLAIN_PASSWORDSet the plain socket password (string)
ZMQ_GSSAPI_SERVERSet whether socket server will use gssapi authentication (1) or not (0)
ZMQ_GSSAPI_PLAINTEXTSet whether socket will encrypt gssapi authentication (1) or not (0)
ZMQ_GSSAPI_PRINCIPALSet the name of the gssapi principal (string)
ZMQ_GSSAPI_SERVICE_PRINCIPALSet the name of the gssapi service principal (string)
status - status for setsockopt. On success, setsockopt will return status of true
See also: zmq_getsockopt, ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE, ZMQ_CONNECT_TIMEOUT.
Package: zeromq