[zeromq-dev] zmq_recvmsg jni

2013-10-01 Thread Radu Braniste
Personally I'm using the direct buffer as a memory arena (I preallocate a pool) and I avoid one allocation like: *> zmq_msg_t msg;*>* zmq_msg_init (&msg);*>* zmq_recvmsg ((void *) socket, &msg, flags);*>* int size = zmq_msg_size (&msg);* *//might check for out of bounds and retu

Re: [zeromq-dev] Certificate formats

2013-10-01 Thread Tony Arcieri
On Tue, Oct 1, 2013 at 4:21 AM, Pieter Hintjens wrote: > http://hintjens.com/blog:53 Regarding this specifically: I don't see a way to safely share a certificate without some shared secret, > or resorting to a third party, CA-style. Even if I encrypt the certificate > with the recipient's publ

Re: [zeromq-dev] Certificate formats

2013-10-01 Thread Tony Arcieri
I've been working on a certificate format of my own ;) Would be great to combine efforts! I'm still rather open on a number of details. https://github.com/cryptosphere/cif I'm also in the "gathering requirements" phase, you won't find much of a specification there. Having been up to my eyeballs i

Re: [zeromq-dev] Why I might want to use JeroMQ if I'm completely fine with JZMQ?

2013-10-01 Thread Pieter Hintjens
This is awesome news... :-) On Wed, Oct 2, 2013 at 12:50 AM, Steven McCoy wrote: > On 1 October 2013 17:00, Pieter Hintjens wrote: >> >> - JeroMQ does not support pgm:// or epgm:// since OpenPGM has no Java >> version > > > Technically there is now, just not complete and requires JDK 7. > > http

Re: [zeromq-dev] Why I might want to use JeroMQ if I'm completely fine with JZMQ?

2013-10-01 Thread Steven McCoy
On 1 October 2013 17:00, Pieter Hintjens wrote: > - JeroMQ does not support pgm:// or epgm:// since OpenPGM has no Java > version > Technically there is now, just not complete and requires JDK 7. https://github.com/steve-o/javapgm ___ zeromq-dev maili

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Pieter Hintjens
On Tue, Oct 1, 2013 at 11:01 PM, Artem Vysochyn wrote: > Still totaly confused... Why need to port something on something? Why > then not create php-port or python-port? There is a .Net port. I've heard rumours there is a pure Python stack floating around. There is a node.js stack. I've even se

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Artem Vysochyn
Still totaly confused... Why need to port something on something? Why then not create php-port or python-port? What bothers most, if this is "a port", then it should mandate "what exactly is currently supported and what is not, what is supported with limitations", and so on. Or should I just beli

Re: [zeromq-dev] Why I might want to use JeroMQ if I'm completely fine with JZMQ?

2013-10-01 Thread Pieter Hintjens
You may want to add this to the FAQ or somewhere on the wiki: - the two stacks are comparable in performance but it depends on message size and frequency - the two stacks are identical at the API and protocol level, and fully interchangeable - JeroMQ matches ZeroMQ stable 3.2 whereas JZMQ may soon

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread crocket
According to my previous tests, jzmq and JeroMQ are on par in terms of performance. On Wed, Oct 2, 2013 at 2:42 AM, Lun, Nicholas wrote: > Hi all, > > ** ** > > I wanted to ask your opinion on JeroMQ as an alternative to the Java > binding you have available. Performance-wise it is my under

[zeromq-dev] Why I might want to use JeroMQ if I'm completely fine with JZMQ?

2013-10-01 Thread Artem Vysochyn
Actually, the question in subj. Q1: What are compeling reasons one should know so that they could turn him into JeroMQ? Q2: What's true about JeroMQ: - better supported? - community more responsive? - community has quicker turnaround (in terms of features)? - battle tested (has prod deployments)?

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Pieter Hintjens
I've added a small section to the download page, at the end of http://zeromq.org/intro:get-the-software. -Pieter On Tue, Oct 1, 2013 at 10:26 PM, Pieter Hintjens wrote: > Someone should add it clearly to the wiki, yes. > > It might be good to provide language-specific sections on the Download >

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Pieter Hintjens
Someone should add it clearly to the wiki, yes. It might be good to provide language-specific sections on the Download page for the main languages at least. It's mentioned on https://github.com/zeromq/jzmq. it's as official as any other ZeroMQ project, part of our organization, and there has bee

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Artem Vysochyn
Hi Pieter, JeroMQ. I was on http://zeromq.org/bindings:java and could not find any info on JeroMQ. Q: is this offcially maintained zmq java binding/port/whatever? Thanks 2013/10/1 Pieter Hintjens : > Nick, > > The general advice is to use JeroMQ to start with and move to JZMQ > later when / i

Re: [zeromq-dev] Monotonic clock ?

2013-10-01 Thread Pieter Hintjens
Hi Julien, Looks like you're right on both counts. Do you want to send a patch to fix this? Here's our contribution process: http://zeromq.org/docs:contributing Cheers Pieter On Tue, Oct 1, 2013 at 9:16 PM, julien tayon wrote: > First Point > https://github.com/zeromq/libzmq/blob/master/src/cl

[zeromq-dev] Monotonic clock ?

2013-10-01 Thread julien tayon
First Point https://github.com/zeromq/libzmq/blob/master/src/clock.cpp#L75 Here I see you use monotonic clock But according to the man clock_gettime I read : CLOCK_MONOTONIC Clock that cannot be set and represents monotonic time since some unspecified starting point. CL

Re: [zeromq-dev] Draft proposal for revamped ZMQ_MONITOR functionality

2013-10-01 Thread gonzalo diethelm
Hi Martin, For adding traceability, I think it does fit the use case. I don't know what others are thinking regarding the use of this functionality. -- Gonzalo Diethelm DCV Chile > -Original Message- > From: zeromq-dev-boun...@lists.zeromq.org [mailto:zeromq-dev- > boun...@lists.zeromq

Re: [zeromq-dev] Draft proposal for revamped ZMQ_MONITOR functionality

2013-10-01 Thread Martin Sustrik
On 2013-10-01 16:09, gonzalo diethelm wrote: > OK, this is what I am thinking, in a very rough first cut, of how > ZMQ_MONITOR should work. Some notes follow. Comments are welcome. What about the fact that monitoring events are queued and thus delivered with a delay? By the time you get CONNECTED

Re: [zeromq-dev] JeroMQ

2013-10-01 Thread Pieter Hintjens
Nick, The general advice is to use JeroMQ to start with and move to JZMQ later when / if you need it. -Pieter On Tue, Oct 1, 2013 at 7:42 PM, Lun, Nicholas wrote: > Hi all, > > > > I wanted to ask your opinion on JeroMQ as an alternative to the Java binding > you have available. Performance-wis

[zeromq-dev] JeroMQ

2013-10-01 Thread Lun, Nicholas
Hi all, I wanted to ask your opinion on JeroMQ as an alternative to the Java binding you have available. Performance-wise it is my understanding that the C library will be as fast or faster, but I find the maintenance easier since JeroMQ is easier to upgrade. What are your opinions? Regards, N

Re: [zeromq-dev] Draft proposal for revamped ZMQ_MONITOR functionality

2013-10-01 Thread Pieter Hintjens
On Tue, Oct 1, 2013 at 5:50 PM, gonzalo diethelm wrote: > 1. Some sockets don’t have identities, hence the need to print the > socket descriptor in a portable way. Socket type as printable string? In most applications that's enough to identify the socket. > 2. Some sockets DO have

Re: [zeromq-dev] Draft proposal for revamped ZMQ_MONITOR functionality

2013-10-01 Thread Pieter Hintjens
Some thoughts on this... - I really like the idea of text events that can be easily parsed, and trivially printed for debugging - Instead of socket numbers, we could use printable identities - Instead of event numbers, we could use short string constants - name=value pairs is a great idea -Pieter

Re: [zeromq-dev] Certificate formats

2013-10-01 Thread Mathias Hablützel
On Tue, Oct 01, 2013 at 11:21:58AM +, Pieter Hintjens wrote: > I've started to collect requirements, in the hope we can make a standard > format. Unfortunately I don't see a simple possibility for the other side to verify if my certificate has not been forged (Certificate Signing). Though you

Re: [zeromq-dev] CZMQ Windows Build

2013-10-01 Thread Laurent Alebarde
Some months ago, I could build libzmq, czmq and libcurve under MinGW, and also via cross-compilation. I remember I had to suppress the hardcoded compiler/linker substitute CC=gcc in builds/mingw32/Makefile.mingw32, and do : mingw32-make -f Makefile.mingw32 Finally, I found it easier to use cro

Re: [zeromq-dev] Can we move the libzmq compiler option to -std=c++11 ?

2013-10-01 Thread Laurent Alebarde
Yes, sure, since PARANO won't exist without libsodium. But then, what about these platforms which may use curve and libsodium ? The different other alternatives I can list are : 1) test at build time the compatibility with c++11 and build PARANO on this condition only. I don't know how to do

Re: [zeromq-dev] A ZeroMQ mention that reads incorrectly

2013-10-01 Thread Pieter Hintjens
Yes, we added a full NoSQL emulation layer in the 3.1.3 release last April 1st. :) -Pieter On Mon, Sep 30, 2013 at 6:33 PM, Bo Kohut wrote: > http://apmdigest.com/delivering-better-mobile-app-performance-with-html5 > > ___ > zeromq-dev mailing list > z

Re: [zeromq-dev] FileMQ Manual Send/Recv + Symbolic Link

2013-10-01 Thread Pieter Hintjens
On Tue, Oct 1, 2013 at 3:55 AM, Ho-Gyun Choi wrote: > Again, both working perfectly as you said it would. Excellent news. Thanks for reporting the problems and testing the fix. Can I ask, are you making an application based on FileMQ? Will that be open source? -Pieter __

Re: [zeromq-dev] Generating Curve certs in pyzmq

2013-10-01 Thread Pieter Hintjens
On Mon, Sep 30, 2013 at 7:38 PM, Tony Arcieri wrote: > If the goal is serializing keys and not full certificates, I'd strongly > recommend a URI format For individual keys, it's not difficult; we have an armoured text format that now seems acceptable. I've started a separate thread on certifica

Re: [zeromq-dev] Can we move the libzmq compiler option to -std=c++11 ?

2013-10-01 Thread Pieter Hintjens
On Mon, Sep 30, 2013 at 5:12 PM, Laurent Alebarde wrote: > Do you see some show-stoppers towards moving the libzmq and co compiler > options to -std=c++11 ? It may be a problem for some platforms... can we use that conditionally, if we're building on libsodium? __

[zeromq-dev] Certificate formats

2013-10-01 Thread Pieter Hintjens
Hi all, As we build security layers around ZeroMQ, one of the fun parts will be certificate formats. I've started to collect requirements, in the hope we can make a standard format. http://hintjens.com/blog:53 -Piieter ___ zeromq-dev mailing list zero

[zeromq-dev] CZMQ Windows Build

2013-10-01 Thread HG Choi
To Developers, I usually prefer to deal with Linux, but I must now build a Windows client application that makes use of ZMQ, CZMQ, and FMQ. I was able to build the latest ZMQ successfully. Now I am trying to build the latest release of CZMQ in Windows 7 x86_64 architecture. I have tried to use th