[zeromq-dev] Newbie questions

Shonari Knibbs s.knibbs at gmail.com
Fri Apr 1 17:14:20 CEST 2011


  It is dangerous to not use the callback (at least with sub/pub; I have not
tested this with the other models).

It is safer to free the message in the callback than at some arbitrary time
in the future: it is possible that you wind up freeing the message before it
is used by 0mq and your message will not be sent.
------------------------------
From: Hoelzlwimmer Andreas
Sent: 01 April 2011 10:01
To: ZeroMQ development list
Subject: Re: [zeromq-dev] Newbie questions

That should be how it’s used, yes. The parameter is optional, so if you
don’t submit a method/function there, you will have to take care of deleting
yourself.



*From:* zeromq-dev-bounces at lists.zeromq.org [mailto:
zeromq-dev-bounces at lists.zeromq.org] *On Behalf Of *Alex du Plessis
*Sent:* Freitag, 01. April 2011 15:53
*To:* ZeroMQ Mailing list
*Subject:* [zeromq-dev] Newbie questions



Hello list,

I'm a complete newbie in the use and application of Zeromq so I am sure my
questions will sound quite inane and downright stupid.  I apologise in
advance.  I stumbled on ZeroMQ early this week while googling for a decent
message system that is'nt implemented in Java. I use FPC(FreePascal) and
Lazarus (both Open Source products) as my programming platform  and intend
to write a binding as well as component/s to enable the use of ZeroMQ with
FPC.  Unfortunately, I am not very C proficient, so I am also doing a crash
course in C/C++ at the moment.  I have already started the port and I'm
ironing out the wrinkles in my interface unit .....So much for the intro,
here's my question:

>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?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110401/39833b3e/attachment.htm>


More information about the zeromq-dev mailing list