Skip to content

setsockopt does not work to set subscriber filters with std::string #72

@mquirin

Description

@mquirin

It seems it is not possible to set subscriber filters using socket_t::setsockopt()

Expected usage would be:

std::string filter = "meta";
socket.setsockopt(ZMQ_SUBSCRIBE, filter); // DOES NOT WORK

Is there a workaround?

Full example here:
https://gist.github.com/mquirin/e50dce82b6d3575351ef

PS: I am using VS 2013

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions