Re: [zeromq-dev] Timing issues

2014-01-17 Thread Bruno D. Rodrigues
a way of disabling Nagle's algorithm (TCP_NODELAY sockopt). On Thu, Jan 16, 2014 at 4:24 AM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: Without looking at the code I assume ØMQ is not trying to send each individual message as a TCP PDU but instead, as the name implies, queues

Re: [zeromq-dev] Timing issues

2014-01-16 Thread Bruno D. Rodrigues
Without looking at the code I assume ØMQ is not trying to send each individual message as a TCP PDU but instead, as the name implies, queues messages so it can batch them together and get the performance. This then means the wire will be filled up when some internal buffer fills, or after a

Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working

2014-01-16 Thread Bruno D. Rodrigues
of performance which approach would be preferable? Gesendet: Mittwoch, 15. Januar 2014 um 01:33 Uhr Von: Bruno D. Rodrigues bruno.rodrig...@litux.org An: zeromq-dev@lists.zeromq.org zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address

Re: [zeromq-dev] Timing issues

2014-01-16 Thread Bruno D. Rodrigues
, 2014 at 4:24 AM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: Without looking at the code I assume ØMQ is not trying to send each individual message as a TCP PDU but instead, as the name implies, queues messages so it can batch them together and get the performance. This then means

Re: [zeromq-dev] libzmq build broken

2014-01-16 Thread Bruno D. Rodrigues
make distclean ./autogen.sh ? On Jan 16, 2014, at 18:31, Greg Ward g...@gerg.ca wrote: On 16 January 2014, Lindley French said: After pulling down libzmq master at 53d0199e50https://github.com/zeromq/libzmq/commit/53d0199e50ddc9fad07b5cf64113cdbf7a0fbf04, my build on linux breaks: *** No

Re: [zeromq-dev] Forwarding ROUTER to PUB

2014-01-16 Thread Bruno D. Rodrigues
both PUB and ROUTER drop messages. the HWM is default 1K since v3 if I recall from the documentation. On Jan 16, 2014, at 19:03, Lindley French lindl...@gmail.com wrote: Well, aside from the router issue I do like the arrangement for easily handling different messages in different places.

Re: [zeromq-dev] Hanging on client receive when a responder goes down in extended request-reply pattern (code in C#)

2014-01-15 Thread Bruno D. Rodrigues
Dumb question, but why not a simple PUSH/PULL pattern and no queues? Each consumer PULLs one message to process. The process pushing data (which may be more than one) will block when the HWM is hit (all consumers are busy, and the “queue” from the producer is full). No need for

Re: [zeromq-dev] Hanging on client receive when a responder goes down in extended request-reply pattern (code in C#)

2014-01-15 Thread Bruno D. Rodrigues
before throwing messages away. I haven't been able to find any options to coax the publisher into blocking when this limit is hit. Here is my push/pull pattern code that I had tried: http://pastebin.com/CJLaY5zk On Wed, Jan 15, 2014 at 12:43 PM, Bruno D. Rodrigues bruno.rodrig

Re: [zeromq-dev] PicoTCP ZeroMQ implementation

2014-01-14 Thread Bruno D. Rodrigues
Inline On Jan 14, 2014, at 11:19, Toon Peters toon.pet...@tass.be wrote: Dear All, I'm currently trying to improve our ZeroMQ implementation on our TCP/IP stack called PicoTCP (All the source files can be found at http://github.com/tass-belgium/picotcp/) I'm currently trying to figure

Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working

2014-01-14 Thread Bruno D. Rodrigues
/ar6bH8vq Gesendet: Montag, 13. Januar 2014 um 09:57 Uhr Von: Bruno D. Rodrigues bruno.rodrig...@litux.org An: zeromq-dev@lists.zeromq.org zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working Thats the part I couldn’t

Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working

2014-01-14 Thread Bruno D. Rodrigues
: Dienstag, 14. Januar 2014 um 12:59 Uhr Von: Bruno D. Rodrigues bruno.rodrig...@litux.org An: zeromq-dev@lists.zeromq.org zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working https://gist.github.com/davipt/8417197 Launch *one

Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working

2014-01-13 Thread Bruno D. Rodrigues
type. Or is the only correct way to specify a different port for every fan-out node? Gesendet: Sonntag, 12. Januar 2014 um 23:33 Uhr Von: Bruno D. Rodrigues bruno.rodrig...@litux.org An: ZeroMQ development list zeromq-dev@lists.zeromq.org Betreff: Re: [zeromq-dev] Pub/sub pattern: Binding

Re: [zeromq-dev] Linking of libzmq (git HEAD) fails under Mac OS X 10.9 Mavericks, ld: unknown option: --version-script=libzmq.vers

2014-01-13 Thread Bruno D. Rodrigues
https://github.com/zeromq/libzmq/pull/821 On Jan 13, 2014, at 16:53, Mathias Hablützel h...@zhaw.ch wrote: Hi everyone, Hit this little problem: $ make all Making all in src /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am CXX libzmq_la-address.lo CXX

Re: [zeromq-dev] Linking of libzmq (git HEAD) fails under Mac OS X 10.9 Mavericks, ld: unknown option: --version-script=libzmq.vers

2014-01-13 Thread Bruno D. Rodrigues
with Windows based DLL imports and exports: https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Shared-Libraries.html#Exported-Symbols-of-Shared-Libraries On 13 January 2014 12:33, Bruno D. Rodrigues bruno.rodrig...@litux.orgwrote: https://github.com/zeromq/libzmq/pull/821

Re: [zeromq-dev] Pub/sub pattern: Binding two sources to same address not working

2014-01-12 Thread Bruno D. Rodrigues
It was hard for me to understand what are you trying to do but I guess the simple answer is no, you can't have the same port (ip+port to be correct) bound multiple times. That's how TCP works. -- Bruno Rodrigues Sent from my iPhone No dia 12/01/2014, às 21:51, Andreas Bauer b...@gmx.net

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-11 Thread Bruno D. Rodrigues
something like this? http://twister.net.co (I’m not promoting it, as I couldn’t even compile it on my Mac) On Jan 11, 2014, at 10:36, Apostolis Xekoukoulotakis xekou...@gmail.com wrote: One alternative to a mesh network is of course peer to peer encryption. All browsers nowadays can persist

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-09 Thread Bruno D. Rodrigues
On Jan 9, 2014, at 10:52, Bjorn Reese bre...@mail1.stofanet.dk wrote: On 01/09/2014 09:06 AM, Pieter Hintjens wrote: * Many public hotspots, especially in the US, block client-to-client traffic. If you are talking about wireless isolation, then they only block multicasting. This means

Re: [zeromq-dev] How many OS threads does ZeroMQ use internally?

2014-01-09 Thread Bruno D. Rodrigues
The documentation recommends creating one single context per process, and when creating it you specify how many zeromq threads to use. -- Bruno Rodrigues Sent from my iPhone No dia 09/01/2014, às 13:33, Jan Drabner j...@jdrabner.eu escreveu: Hey there, We are currently doing research for

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Bruno D. Rodrigues
I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just because it’s the same name, or if there is any

Re: [zeromq-dev] Dealing with client-side crash for REQ/REP

2014-01-07 Thread Bruno D. Rodrigues
Straight from the sockets documentation, Router won’t ever block and will either discard the message if nothing is connected, or queue up to the HWM (and then drop) if there is a connection. This applies to Router and PUB. It’s a little bit more complicated than this (queue vs. plain drop) if

Re: [zeromq-dev] ZeroMQ Java Binding install -- issues solution

2014-01-06 Thread Bruno D. Rodrigues
I’ve just sent a pull request to fix the broken jar file https://github.com/zeromq/jzmq/pull/277 On Jan 4, 2014, at 21:41, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: I’ve just grabbed the latest version and indeed it’s weird what is happening. make creates a jar file inside src

Re: [zeromq-dev] ZeroMQ Java Binding install -- issues solution

2014-01-04 Thread Bruno D. Rodrigues
I’ve just grabbed the latest version and indeed it’s weird what is happening. make creates a jar file inside src/main/c++/zmq.jar, which has a wrong folder hierarchy, like you show, with a ../java. but if you ignore that file and run mvn clean -Dmaven.test.skip, then there is a correct jar

Re: [zeromq-dev] zmq performance (send / recieve)

2014-01-03 Thread Bruno D. Rodrigues
Try out my fork, which is the same code but with a tweaked perf's local_thr, remote_thr and proxy https://github.com/davipt/libzmq/tree/fix-002-proxy_lat_thr First try the original throughput test, using push-pull. My results on a MacBook Pro (on Linux it’s much better btw): idavi:perf bruno$

Re: [zeromq-dev] Problem with zeromq and large messages

2014-01-03 Thread Bruno D. Rodrigues
read the man page ;) recv returns the size of the message, but if the buffer you give is smaller than the message, zmq won’t write more bytes than the ones available. the more flag is unrelated to the buffer size. It just means that multiple messages (parts) can be gathered together as a whole

Re: [zeromq-dev] Problem with zeromq and large messages

2014-01-03 Thread Bruno D. Rodrigues
zmq_msg_recv() if you want to allocate a buffer large enough for each message. Now, if you're trying to be clever and only reallocate when the next message is bigger than any you've seen so far, maybe there would be some benefit to a new API method. On Fri, Jan 3, 2014 at 1:14 PM, Bruno D

Re: [zeromq-dev] Problem with zeromq and large messages

2014-01-03 Thread Bruno D. Rodrigues
size – then I need to call it again – and then does it give me the next length bytes? Or have I already just lost those bytes? From: Bruno D. Rodrigues bruno.rodrig...@litux.org Reply-To: ZeroMQ development list zeromq-dev@lists.zeromq.org Date: Friday, January 3, 2014 at 12:14 PM

Re: [zeromq-dev] Problem with zeromq and large messages

2014-01-03 Thread Bruno D. Rodrigues
No, it’s not that clear at the beginning, as you state yourself on the book. There’s a reuse of the same words for slightly different things and that is quite confusing until the boom paw moment. There is at least one thing called message. It contains a length, the data, and a flag stating if

Re: [zeromq-dev] Async access to a single socket - send and recv without reducing throughput

2013-12-31 Thread Bruno D. Rodrigues
poll on an additional pair of zmq inproc:// sockets ;) On Dec 31, 2013, at 12:41, Matt Connolly matt.conno...@me.com wrote: Zmq poller can also wake on standard file descriptors (eg unix socket). If your custom event can write to a unix socket or pipe you might be in luck. Cheers Matt.

Re: [zeromq-dev] Authentication and filtering

2013-12-28 Thread Bruno D. Rodrigues
Use the identity for routing and a first message from your own for authentication. Now if the auth fails, I have no idea how to “disconnect” that peer :( but you can keep your own hash and never reply back to such peer. On Dec 28, 2013, at 15:17, Dmitriy Vsekhvalnov dvsekhval...@gmail.com

Re: [zeromq-dev] Is UDP transport needed in ZeroMQ?

2013-12-28 Thread Bruno D. Rodrigues
On Dec 28, 2013, at 17:26, Michael Powell mwpowell...@gmail.com wrote: On Sat, Dec 28, 2013 at 11:05 AM, Daniel Krikun dkrik...@gmail.com wrote: What I wanted to say is that while patterns do simplify development, they have there peculiarities, in the example above, i'm doing non-blocking

Re: [zeromq-dev] Authentication and filtering

2013-12-28 Thread Bruno D. Rodrigues
. How can i track identity or peer? On Sat, Dec 28, 2013 at 7:38 PM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: Use the identity for routing and a first message from your own for authentication. Now if the auth fails, I have no idea how to “disconnect” that peer :( but you can

Re: [zeromq-dev] Why 0mq doesn't define TTL for message (for in-mem queue)?

2013-12-28 Thread Bruno D. Rodrigues
I recall apache activemq (jms) had a ttl system that worked like this (back in 2008, no idea how it works now): - messages gets queued individually - when a consumer connects, messages gets popped from the queue, and if the ttl elapsed, they’d get discarded instead of piped into the consumer.

Re: [zeromq-dev] Is UDP transport needed in ZeroMQ?

2013-12-28 Thread Bruno D. Rodrigues
. On Dec 28, 2013 9:06 PM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: On Dec 28, 2013, at 17:26, Michael Powell mwpowell...@gmail.com wrote: On Sat, Dec 28, 2013 at 11:05 AM, Daniel Krikun dkrik...@gmail.com wrote: What I wanted to say is that while patterns do simplify development

Re: [zeromq-dev] Why 0mq doesn't define TTL for message (for in-mem queue)?

2013-12-28 Thread Bruno D. Rodrigues
is not concrete business feature, it's very common and ubiquitous thing. Agree? 2013/12/28 Bruno D. Rodrigues bruno.rodrig...@litux.org I recall apache activemq (jms) had a ttl system that worked like this (back in 2008, no idea how it works now): - messages gets queued individually - when

Re: [zeromq-dev] Thoughts on a pattern: The Noisy Gymnasium

2013-12-22 Thread Bruno D. Rodrigues
On Dec 22, 2013, at 21:33, Randall Nortman rn...@wonderclown.net wrote: I am developing a new application using zmq in an unusual (from what I've seen so far) way. I'd like to solicit input, particularly about reasons this may be a terrible idea. It is essentially a variation on an

Re: [zeromq-dev] Identity and reconnection

2013-12-18 Thread Bruno D. Rodrigues
connect a ZMQ_STREAM to a ZMTP socket. Whatever connexion you make, the server will use a random 5 bytes identity for the first connexion to a given socket, and will increment it for the next one. Le 17/12/2013 23:44, Bruno D. Rodrigues a écrit : From my experience if you set the dealer identity

Re: [zeromq-dev] Does ZMQ handle tcp-RST?

2013-12-17 Thread Bruno D. Rodrigues
Check the new IMMEDIATE flag -- Bruno Rodrigues Sent from my iPhone No dia 17/12/2013, às 08:57, artemv zmq artemv@gmail.com escreveu: hello there, devs do we have any updates here? 2013/12/14 artemv zmq artemv@gmail.com Ok. I set HWM to 0. Launched DEALER (my client) , and

Re: [zeromq-dev] ZMQ spec update proposition / enhancement to core messaging

2013-12-17 Thread Bruno D. Rodrigues
I’ll ask again, isn’t this what the IMMEDIATE does? With this on, send fails right away if the connection is not yet established (for the relevant socket types of course) On Dec 17, 2013, at 17:35, artemv zmq artemv@gmail.com wrote: hello there, I have a proposition to the core of ZMQ:

Re: [zeromq-dev] Identity and reconnection

2013-12-17 Thread Bruno D. Rodrigues
From my experience if you set the dealer identity before connecting, by design it will always use that value. It's when the identity is not set manually and the router calculates a unique id that it will change. -- Bruno Rodrigues Sent from my iPhone No dia 17/12/2013, às 22:33, Greg Ward

Re: [zeromq-dev] ZeroMQ IPC Windows

2013-12-13 Thread Bruno D. Rodrigues
I'm not using windows but if there is anything I could help a fellow colleague from Técnico, in Portuguese, just ask me ;) -- Bruno Rodrigues Sent from my iPhone No dia 13/12/2013, às 12:35, Francisco Freire francisco.m.fre...@gmail.com escreveu: Hi, I'm doing some research at Instituto

Re: [zeromq-dev] Bidirectional communication

2013-12-13 Thread Bruno D. Rodrigues
The client, being the one doing the connect, should also always send a first hello, and hence it’s a simple multi dealer (clients) - router (server) pattern. On Dec 13, 2013, at 21:39, Kelly Sommers kell.somm...@gmail.com wrote: Hey everyone! I'm looking to have a server that can accept

Re: [zeromq-dev] C# binding to zeromq (clrzmq project)

2013-12-12 Thread Bruno D. Rodrigues
all implementation shall talk to all implementations without issues, or else report a bug and provide a fix ;) On Dec 12, 2013, at 13:01, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Thanks Doron. How about NetMQ to JeroMQ? On Thu, Dec 12, 2013 at 4:05 PM, Doron Somech

Re: [zeromq-dev] What exact networking problems ZMQ does solve?

2013-12-12 Thread Bruno D. Rodrigues
On Dec 12, 2013, at 17:40, Randall Nortman rn...@wonderclown.net wrote: On Thu, Dec 12, 2013 at 06:46:12PM +0200, artemv zmq wrote: [...] Now my question is going more to networking field. I want that kind of situations when I can lose connection __but__ nor FIN, neither RST will be

Re: [zeromq-dev] What exact networking problems ZMQ does solve?

2013-12-11 Thread Bruno D. Rodrigues
, Dec 11, 2013 at 12:38 AM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: Xsub xpub for distribution load balancing What is Xsub xpub? Could you please explain these terms or give me a link to an online resource where these terms are explained in detail? Thanks in advance, -Asif

Re: [zeromq-dev] What exact networking problems ZMQ does solve?

2013-12-11 Thread Bruno D. Rodrigues
(not batching!) applications on ZMQ? BR -artemv 2013/12/11 Bruno D. Rodrigues bruno.rodrig...@litux.org zeromq.org - learn the basics - http://zeromq.org/intro:read-the-manual - the guide - http://zguide.zeromq.org/page:all I just gave you a short description of how Ømq is solving

Re: [zeromq-dev] best practice

2013-12-11 Thread Bruno D. Rodrigues
On Dec 11, 2013, at 14:43, Pieter Hintjens p...@imatix.com wrote: On Wed, Dec 11, 2013 at 1:40 PM, Andrew Hume and...@research.att.com wrote: i’ve just switched to using poller and wanted to verify my “pattern”. i have 4 incoming sockets. 3 are (very) low volume but need low latency the

Re: [zeromq-dev] Thread safety of the ROUTER socket

2013-11-29 Thread Bruno D. Rodrigues
I’m gonna answer from my own experience but I’m sure someone with better knowledge will correct me ;) 1. Albeit I’m using java and even the jeromq codebase, I’ve solved it by simply synchronizing the access to the socket.recv and socket.send (mutex, whatever it’s called on your language), and

Re: [zeromq-dev] Weird behavior with zmq_proxy performance

2013-11-19 Thread Bruno D. Rodrigues
as requested I’ve created a ticket and updated the branch with the latest code and a perf/README.txt explaining how to run it (basically the instructions below) https://github.com/zeromq/libzmq/issues/757 On Nov 10, 2013, at 13:08, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: I’ve

Re: [zeromq-dev] Weird behavior with zmq_proxy performance

2013-11-10 Thread Bruno D. Rodrigues
/SUB. So, then again, what is happening with the zmq_proxy? On Nov 7, 2013, at 22:15, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: I’ve been testing a lot of combinations of ZeroMQ over Java, between the pure jeromq base and the jzmq JNI libzmq C code. Albeit my impression so far

Re: [zeromq-dev] Weird behavior with zmq_proxy performance

2013-11-10 Thread Bruno D. Rodrigues
Rodrigues Sent from my iPhone No dia 10/11/2013, às 18:53, Pieter Hintjens p...@imatix.com escreveu: On Sun, Nov 10, 2013 at 2:08 PM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: I’ve branched the code to add the proxy code for testing: https://github.com/davipt/libzmq/tree/fix-002

Re: [zeromq-dev] PUB/SUB in realtime, aka real radio broadcast

2013-11-10 Thread Bruno D. Rodrigues
I'm unable to test this but as I see a sleep 0.5 and a constant delay increase of 1sec I'd suggest the receiver to instead of sleeping a fixed time, to poll, with a timeout value until the next tick. That way if the receive and your code takes 0.75s, the poll can Sleep only Up to 0.25s, but more

Re: [zeromq-dev] ZeroMQ 'make check' failure

2013-11-09 Thread Bruno D. Rodrigues
With the current master, I get all pass on macosx as long as I run ulimit -n 8192 before. The test_many_sockets fails because it creates 5K sockets. The shutdown may fail for similar reasons. Testsuite summary for

Re: [zeromq-dev] ZeroMQ 'make check' failure

2013-11-09 Thread Bruno D. Rodrigues
, 2013 at 12:18 PM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: With the current master, I get all pass on macosx as long as I run ulimit -n 8192 before. The test_many_sockets fails because it creates 5K sockets. The shutdown may fail for similar reasons

Re: [zeromq-dev] ZeroMQ 'make check' failure

2013-11-09 Thread Bruno D. Rodrigues
not crash or assert when this condition hits. On Sat, Nov 9, 2013 at 1:19 PM, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: So if the limits are raised should the test fail or still pass albeit is not testing anything? I don't think it's a good idea to have tests depending

Re: [zeromq-dev] ZeroMQ 'make check' failure

2013-11-09 Thread Bruno D. Rodrigues
probably when they are attempted to be used. Will follow the create socket and try to understand what is failing here… On Nov 9, 2013, at 20:54, Bruno D. Rodrigues bruno.rodrig...@litux.org wrote: so this means that even with ulimit -n 256, zmq still happily creates 1024 sockets without returning

[zeromq-dev] Weird behavior with zmq_proxy performance

2013-11-07 Thread Bruno D. Rodrigues
I’ve been testing a lot of combinations of ZeroMQ over Java, between the pure jeromq base and the jzmq JNI libzmq C code. Albeit my impression so far is that jeromq is way faster than the binding - not that the code isn’t great, but my feeling so far is that the JNI jump slows everything down -

Re: [zeromq-dev] Cannot find libzqm.so file

2013-10-28 Thread Bruno D. Rodrigues
Wth? This is standard configure like millions of other packages. Just run with --help. Or in this case you'd need ./configure --prefix=/tmp/foo. But it's irrelevant because as already said the compiled files are on the sources, src/.libs as standard. -- Bruno Rodrigues Sent from my iPhone No

Re: [zeromq-dev] Installing Zeromq on Mac OS

2013-10-27 Thread Bruno D. Rodrigues
It’s quite simple, it’s just sad that there is no links to the right places on the documentation. About the Mac version, I only had issues with my Mac Mini running 10.6 because there is no Oracle Java 7 nor 6, and the Mac java 6 crashed. On the other hand I can’t recall anymore if it crashed

Re: [zeromq-dev] zmq(pub/sub) problems as a service in UBUNTU

2013-10-14 Thread Bruno D. Rodrigues
Most probably OS limits. Check ulimit -n A 14/10/2013, às 13:40, ljs linj...@163.com escreveu: 1.zmq mode PUB / SUB, PUB on the service side, when each client and server connected to the SUB, the service side of the gradual increase in the number of connections, when the number of

Re: [zeromq-dev] Question about zmq_recv len and truncate

2013-10-12 Thread Bruno D. Rodrigues
receive directly into your buffer, it just does the copying from a zmq_msg_t to your buffer. It was probably created to mimic the BSD sockets API. You could prevent out-of-memory with socket option of ZMQ_MAXMSGSIZE. On Sat, Oct 12, 2013 at 4:45 AM, Bruno D. Rodrigues bruno.rodrig

[zeromq-dev] Question about zmq_recv len and truncate

2013-10-11 Thread Bruno D. Rodrigues
Hello all, I'm curious about a comment on a certain behaviour of zmq_recv that affected me when using it over the Java bindings. The sentence in question is the following: http://api.zeromq.org/3-2:zmq-recv The zmq_recv() function shall return number of bytes in the message if successful. Note