'set socket option'

def set(self, opt, val):

    if (opt in TIMEOS):
        warnings.warn('TIMEO    socket    options    have    no    effect    in    zmq.green', UserWarning)
    result = super(_Socket, self).set(opt, val)
    if (opt in (zmq.SUBSCRIBE, zmq.UNSUBSCRIBE)):
        self.__state_changed()
    return result
