[zeromq-dev] Memory management

Jeff Shanab jshanab at jfs-tech.com
Thu Apr 14 12:06:46 CEST 2016

I am writing an app in C++ and using libzmq directly, not much of the c++
wrapper stuff.

I am interested in zero copy or at least minimizing the number of copies of
large buffers.

But am running across an all too common issue, Each library used wants to
have their own memory management forcing me to copy between the systems.

Is there a way I could use boost shared_ptr<zmq_msg_t> with the functions
so ZMQ could dereference/delete after the send?

In fact is there a way to hook into the system and get a callback when it
goes to delete with the client pointer so I can delete or return it to a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160414/021425e6/attachment.htm>

More information about the zeromq-dev mailing list