Just an update on this. I dropped back to ZeroMQ 2.1.11 and it's working
like a champ. Perhaps there's
a bug in ZeroMQ 3.1-Beta.
Thanks
--Corey
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of William Brown
Sent: Wednesday, January 25, 2012 6:46 PM
To: [email protected]
Subject: [zeromq-dev] EPGM on Linux 4.1.2
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
[cid:716575423@25012012-2AFD]
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
[email protected]<mailto:[email protected]>
www.ericsson.com<http://www.ericsson.com/>/television
[cid:716575423@25012012-2B04]
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>
<<inline: Picture (Metafile) 1.jpg>>
<<inline: Picture (Metafile) 2.jpg>>
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
