• Julien Ruffin's avatar
    Added socket option ZMQ_INVERT_MATCHING. · cf2238f8
    Julien Ruffin authored
    ZMQ_INVERT_MATCHING reverses the PUB/SUB prefix matching. The subscription
    list becomes a rejection list. The PUB socket sends messages to all
    connected (X)SUB sockets that do not have any matching subscription.
    
    Whenever the option is used on a PUB/XPUB socket, any connecting SUB
    sockets must also set it or they will reject everything the publisher
    sends them. XSUB sockets are unaffected because they do not filter out
    incoming messages.
    cf2238f8
xsub.cpp 6.5 KB