[zeromq-dev] Newbie questions
Martin Sustrik
sustrik at 250bpm.com
Fri Apr 1 16:59:27 CEST 2011
Alex,
> From the api documentation on the web it seems that the variable ffn of
> type zmq_free_fn as defined in the parameters of *zmq_msg_init_data* is
> a user supplied function and one needs to pass a pointer to a function
> that will free the message data. Is this correct?
Most bindings don't even use zmq_msg_init_data. It's intended for
zero-copy transfer of user-allocated buffers, which you probably won't
be able to do in Pascal anyway.
Just stick to zmq_msg_init_size.
Martin
More information about the zeromq-dev
mailing list