On 09/23/2010 11:46 PM, gonzalo diethelm wrote:
> I believe there is no way to query what type a socket is; is this right?

No there is not.

> I could use such a function and can think of a couple of use cases. One
> of them would be adding many sockets (of possibly different types) to a
> collection, and then iterating over that collection and taking action on
> the sockets depending on their type.
>
> I don’t think zmq_getsockopt() would be a good fit for such a
> functionality, because it might convey the idea that you could also
> change the type with an equivalent call to zmq_setsockopt(). Unless we
> want to add this capability… (I doubt it).

Definitely not. But getsockopt may work.There's lot of options that can 
be get but not set. I don't see a problem there.

Martin
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to