Get the current value of an option.
sock - the socket to connect.
optionid - the setsockopt option to set.
Valid optionids are:
ZMQ_RCVMOREFlag for whether a message has been split into multiple messages. The return value will be either 0 or 1.
ZMQ_TYPESocket type for zeromq socket created with zmq_socket. Valid types are the same as the socket type value specified with zmq_socket.
ZMQ_EVENTSGet the event state of zeromq socket. The returned value is a bit mask that may contain the following set values:
ZMQ_POLLIN set when at least one message is available to read and zmq_recv will not block.
ZMQ_POLLOUT set when at least one message can be written without zmq_send blocking.
ZMQ_IDENTITY or ZMQ_ROUTING_IDGet the socket identity value
ZMQ_RATEGet the multicast data rate
ZMQ_PRIORITYGet socket priority (linux only)
ZMQ_BACKLOGGet length of queue for pending connections
ZMQ_LAST_ENDPOINTGet the last endpoint the socket was connected to
ZMQ_CONNECT_TIMEOUTGet the connect timeout value
ZMQ_SOCKS_PROXYGet the SOCKS5 proxy value (string)
ZMQ_CURVE_SERVERGet whether socket is a curve server (1) or not (0)
ZMQ_CURVE_PRIVATEKEYGet a the curve socket private key (string)
ZMQ_CURVE_PUBLICKEYGet a the curve socket public key (string)
ZMQ_CURVE_SERVERKEYGet a the curve socket public key (string)
ZMQ_PLAIN_SERVERGet whether socket server will use plain authentication (1) or not (0)
ZMQ_PLAIN_USERNAMEGet the plain socket username (string)
ZMQ_PLAIN_PASSWORDGet the plain socket password (string)
ZMQ_GSSAPI_SERVERGet whether socket server will use gssapi authentication (1) or not (0)
ZMQ_GSSAPI_PLAINTEXTGet whether socket will encrypt gssapi authentication (1) or not (0)
ZMQ_GSSAPI_PRINCIPALGet the name of the gssapi principal (string)
ZMQ_GSSAPI_SERVICE_PRINCIPALGet the name of the gssapi service principal (string)
ZMQ_MECHANISMGet the security mechanism (ZMQ_NULL, ZMQ_PLAIN, ZMQ_CURVE, ZMQ_GSSAPI)
value - the value set for the option, or [].
See also: zmq_socket, zmq_setsockopt.
Package: zeromq