[zeromq-dev] C++, socket_t, and poll - Email found in subject
Jon Dyte
jon at totient.co.uk
Wed Oct 27 23:02:21 CEST 2010
Sven Koebnick wrote:
> how are you going to destroy the sockets later (on prog termination) if you
> haven't stored your objects?
> how are you gonna send something?
> IMHO, it's mandatory to keep track of objects.
> if you need to hide it (for readability or else), you can wrap some
> 3-liner-class arround it, giving the socket_t out of some
> std::map<void*,socket_t> or similar.
>
>
true, though it would have to be map<void*, socket_t*> as there are no
copy or assignment on socket_t
jon
More information about the zeromq-dev
mailing list