You don't have to use the same library or same api on both ends. The czmq library provides a way to send/receive zmq messages with varying degree of convenience. Any programming language/library combination that does the same can be used.
On Wed, May 3, 2017 at 12:30 PM, Brian Sellden <[email protected]> wrote: > Hi Max, > > > > I was looking through this a little… If I use zmsg on the receiving end, > do I have to use zmsgs/zframes on the sending end as well? > > > > Brian. > > *From:* zeromq-dev [mailto:[email protected]] *On > Behalf Of *Max Kozlovsky > *Sent:* Wednesday, May 03, 2017 1:39 PM > *To:* ZeroMQ development list > *Subject:* Re: [zeromq-dev] Dipping into zmq_recv from czmq > > > > Hi, > > > > zmsg_ function can be used to send/receive any kind of data in czmq. > > > > http://czmq.zeromq.org/czmq4-0:zmsg > > > > Max > > > > On Wed, May 3, 2017 at 8:53 AM, Brian Sellden <[email protected]> > wrote: > > Hello, > > > > I’m using czmq to transfer serialized objects in char arrays. The > serialized data may contain nulls, so processing with c-string oriented > functions Is a problem. So using zstr_recv(void*) doesn’t work for me as > it returns a char* with no way to identify the length of the array. > > > > I thought I might dip into the zmq calls directly so I can use > zmq_recv(void* source, void* buf, size_t len, int flags), as it returns the > number of bytes copied into the buffer. But my sockets are created with > zsock_new(…), so I’m not sure about the compatibility of these calls. Am I > on the right track with this, and can someone offer some advice on how to > proceed? I did try just putting my zsock_t* into the zmq_recv call, but it > just returns -1 even though zpoller_t reports that there is data available > on the socket. > > > > Thanks – > > > > Brian. > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
