Re: [zeromq-dev] v3.1 and pre-built devices

2012-03-12 Thread Wes Young
https://github.com/zeromq/libzfl

?

looks like zdevice.c was pushed to libzfl ?

On Mar 11, 2012, at 3:12 PM, Jon Dyte wrote:

 The project moved here, but I'm not sure if it's completely up to date
 https://github.com/imatix/zdevices
 
 FWIW most of the devices are very simple and it's fairly easy to 
 roll-yr-own.

--
Wes
claimid.com/wesyoung



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] czmq and math library

2012-03-12 Thread Stephen Hemminger
libczmq is linked against math library but does not appear to use it
(at least on Linux).  Not sure about other platforms:

Debian build warning:
   dh_shlibdeps
dpkg-shlibdeps: warning: dependency on libm.so.6 could be avoided if 
debian/libczmq0/usr/lib/libczmq.so.1.0.0 were not uselessly linked against it 
(they use none of its symbols).
   dh_installdeb
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] v3.1 and pre-built devices

2012-03-12 Thread Jon Dyte
On 12/03/12 16:18, Pieter Hintjens wrote:
 On Mon, Mar 12, 2012 at 1:25 PM, Wes Youngw...@barely3am.com  wrote:

 https://github.com/zeromq/libzfl
 looks like zdevice.c was pushed to libzfl ?
 Yes, I moved the generic device to libzfl as an example. These two
 projects didn't get any traction so I abandoned them. However libzfl
 provides some useful stuff for real devices (such as configuration)
 which was missing from the minimal versions previously in the core.

 If anyone wants to use / improve libzfl and/or zdevices, send pull requests 
 :-)

 -Pieter
well for 3.1 the zmq_device function is going to need to be in either 
zfl or czmq as it's gone in libzmq.

This is true for some of the bindings as well if they ever offered 
zmq_device call.
pyzmq rolls it's own already.



Jon



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] v3.1 and pre-built devices

2012-03-12 Thread Pieter Hintjens
On Mon, Mar 12, 2012 at 8:15 PM, Jon Dyte j...@totient.co.uk wrote:

 well for 3.1 the zmq_device function is going to need to be in either
 zfl or czmq as it's gone in libzmq.

It's really quite a simple piece of code, so reimplementing it in
bindings is trivial. I'm not sure if binding technologies allow
arbitrary C code to be included; that would be simplest.

-Pieter
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] v3.1 publisher filtering

2012-03-12 Thread Joshua Foster
3.1 works the same way as 2.1 in your example. The changes in 3.1 is 
that the subscription is forwarded to the PUB socket. This allows you to 
create a publisher device. It would sit between the parent publisher and 
the subscriber. The XPUB keeps track of the subscriptions and allows 
them to apply to the XSUB socket. This effectively filters out any 
messages that do not match a subscription. In your example, you are 
matching against a and  so all messages would be passed through.


You can of course use a ROUTER socket and manage the subscriptions 
yourself in the application (with DEALER). The main downside is that you 
won't be able to detect client disconnections. You may also want to 
consider creating an alternative PUB socket implementation in ZeroMQ.


Joshua

On 3/12/2012 6:48 PM, Steve wrote:
I have a high level question about how a v3.1 publisher handles 
sending updates to subscribers.  I understand that v3.1 can push the 
subscription filtering further towards the publisher but to what 
degree I'm unclear on.


Here is a very simple usage example:

1) Publisher has a list of topics that are randomly updated 10 times a 
second.  There are a total of 26 topics and each is a single lowercase 
alpha character representing the English alphabet (a - z).

2) Subscriber 'A' subscribes to just a topic matching a.
3) Subscriber 'B' subscribes to all topics ().

In version 2.1, I believe Subscriber 'A' would receive all the 
messages and that the zeromq client library would filter them so the 
client would only see updates on 'a'.  In version 3.1, is it possible 
to filter the messages at the publisher so that Subscriber 'A' only 
receives updates on topic 'a' (no filtering done on the client) and 
that Subscriber 'B' receives all updates on all topics (a-z)?


Thanks,

Steve


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] pull-request libczmq

2012-03-12 Thread Stephen Hemminger
The following changes since commit 3bbf88fafdc332aad650210e103910aadf53d918:

  Merge pull request #17 from mkoppanen/master (2012-03-05 00:57:01 -0800)

are available in the git repository at:


  git://github.com/shemminger/libczmq-changes.git master

for you to fetch changes up to 83b1c00b60ecbd94f76b42433c18b20dd8e41ad8:

  Don't need math library (2012-03-12 12:02:35 -0700)


Stephen Hemminger (1):
  Don't need math library

 c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c b/c
index ee5bd3c..fa8648b 100755
--- a/c
+++ b/c
@@ -163,7 +163,7 @@ if [ $CCNAME = gcc ]; then
 #  If your build is failing because of missing libraries then
 #  either you are missing development packages, or are on a 
non-standard/old
 #  system and should add a special case.
-STDLIBS=-lpthread -lm
+STDLIBS=-lpthread
 
 #
 #  Linux-specific subsection
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev