[zeromq-dev] docs, ownership sockopts

john skaller skaller at users.sourceforge.net
Sun Jan 15 12:10:11 CET 2012


Who owns the binary data blobs using set_sockopts? And get_socopts while I'm asking.
For identity, subscribe, unsubscribe?

I presume the caller owns them for all the others, so the function must
copy the int, uint64 etc. I assume set_sockopts copies the blobs
with malloc. In that case, how is it freed? 

If not .. how do I free it?

I'm currently passing C++ string.c_str() for the blobs on set,
and will init a string on get ..  will that work?


--
john skaller
skaller at users.sourceforge.net







More information about the zeromq-dev mailing list