'get the value of a socket option
See the 0MQ documentation for details on specific options.
Parameters
option : int
The option to retrieve.
Returns
optval : unicode string (unicode on py2, str on py3)
The value of the option as a unicode string.'

def get_string(self, option, encoding='utf-8'):

    if (option not in constants.bytes_sockopts):
        raise TypeError(('option    %i    will    not    return    a    string    to    be    decoded' % option))
    return self.getsockopt(option).decode(encoding)
