[zeromq-dev] EPGM on Linux 4.1.2

William Brown william.brown at ericsson.com
Thu Jan 26 00:45:37 CET 2012


        Greetings,

        I could use some help with an EPGM example on Red Hat 4.1.2 if possible. I've written a simple
        example program that works very well on a Mac (OS-X Snow-Leopard), but fails to receive messages on
        Linux. I'm on version 3.1 of ZeroMQ and have applied the pgm_sender.cpp (line 102) patch.

        The test, written in Java, is very simple. I have two threads, one acting as the publisher and one acting
        as a subscriber. On the publisher I do the following:

        context = ZMQ.context(1);
        socket  = context.socket(ZMQ.PUB);
        socket.bind("epgm://eth0;228.1.2.3:5558");

        while( ! stoppingCase) {
                socket.send(message.getBytes(), 0);
        }

        And on the subscriber I do the following:

        context = ZMQ.context(1);
        socket  = context.socket(ZMQ.SUB);
        socket.connect("epgm://eth0;228.1.2.3:5558");
        socket.subscribe("".getBytes());

        While( ! stoppingCase) {
                byte message = socket.recv(0);
        }

        On my Mac, this works great, except that I do have to substitute my IP address for the interface name.
        On my Linux system the bind and connect work and the publisher appears to be publishing the messages.
        The problem is that the receiver is getting nothing. The eth0 interface does contain the following
        "UP BROADCAST RUNNING MULTICAST MTU:1500 etc, etc..... I've got plenty of sleep in the example
        program between subscriber start and publisher start, so I shouldn't be missing any messages.

        Any thoughts on why this program doesn't work on Linux?

        Thanks
        --Corey




WILLIAM COREY BROWN
Director of Engineering

Ericsson Television Inc
Solution Area TV
4500 River Green Parkway
Duluth, GA 30096, USA
Phone  +1 678 689 6522
Fax      +1 678 689 6622
Mobile  +1 678 773 4998
william.brown at ericsson.com<mailto:william.brown at ericsson.com>
www.ericsson.com<http://www.ericsson.com/>/television




This Communication is Confidential. We only send and receive email on the basis of the term set out at www.ericsson.com/email_disclaimer<http://www.ericsson.com/email_disclaimer>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120125/96964e74/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Metafile) 1.jpg
Type: image/jpeg
Size: 1313 bytes
Desc: Picture (Metafile) 1.jpg
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120125/96964e74/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Metafile) 2.jpg
Type: image/jpeg
Size: 2750 bytes
Desc: Picture (Metafile) 2.jpg
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120125/96964e74/attachment-0001.jpg>


More information about the zeromq-dev mailing list