[zeromq-dev] null-terminated strings
Pieter Hintjens
ph at imatix.com
Thu Sep 20 11:33:45 CEST 2012
On Wed, Sep 19, 2012 at 8:51 PM, Davis Ford <davis at daisyworks.com> wrote:
> So, my question is whether the section about having to deal with null
> terminated strings at each node is still applicable or has this issue
> been abstracted away in a newer version as specified here:
> http://zguide.zeromq.org/page:all#A-Minor-Note-on-Strings
The text is correct. You should not try to accommodate the string
formats of specific languages. If the Java code does this, it's out of
date.
> Also, I noticed that the example code in the guides seems to use a
> higher-level abstraction of the API for C
> https://github.com/zeromq/czmq - what is the advantage of using this
> over the standard API -- I'm assuming that it layers on top of the API
> to make it more friendly? Is the recommended path for C code to use
> czmq?
Yes, as you will see if you continue to read the Guide. Working in C
without CZMQ is pointless except for very specific cases.
-Pieter
More information about the zeromq-dev
mailing list