Ok, I will take some of the blame.  I was apparently looking at an older 
reference manual.  I went to www.zeromq.org-->LEARN the basics-->The 0MQ 
Reference Manual.  That takes me to a page with the API definitions

ØMQ/2.2.0 API Reference

v3.3 master | v3.2 rc1 | v2.2 stable


I did not realize Iwas supposed to look at the fine print and select th v3.2 
rc1 flavor from this page.  I assumed (i know) that I was looking at the 
current reference, especially when the previous page has an explicit link for 
the "older"  version of the guide.  Perhaps two links (similar to the guide 
links), could be placed on the LEARN page, since it seems you would want 
"newbies" to go to the latest documentation by default.

Anyway thank you for the correction.   I will look at current doc from now on.


On Nov 28, 2012, at 4:39 PM, Stathis Gkotsis <[email protected]> 
wrote:

> According to this: http://api.zeromq.org/3-3:zmq-msg-send , the return value 
> is the number of bytes in the message if successful.
> ________________________________________
> From: [email protected] 
> [[email protected]] On Behalf Of Brad Taylor 
> [[email protected]]
> Sent: Thursday, November 29, 2012 12:33 AM
> To: [email protected]
> Subject: [zeromq-dev] zmq_send_msg return positive number not zero
> 
> Code snippet below…..
> 
> 
> rc = zmq_msg_send(&zmqRequestMessage,pZmqSocket,0);
> if (rc) {
> pResponse->rc = LZ_JEZRC_ZMQSENDFAILED;
> pResponse->errnumber = errno;
> break;
> }
> 
> In debug mode, I check the value of rc and get a value of 329, which just 
> happens to be my message size.  Am I doing something wrong here.  Seems to be 
> behaving like socket send, return #bytes sent.  Doc says rc should be 0.
> 
> Thank you
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to