[
http://jira.jboss.com/jira/browse/JGRP-639?page=comments#action_12393522 ]
Bela Ban commented on JGRP-639:
-------------------------------
Actually, if we change
mc_addr.sin_addr.s_addr = htonl(mc_addr_str); // <===
to
mc_addr.sin_addr.s_addr = inet_addr(mc_addr_str); // <=== htonl to inet_addr !
it works (tested on Linux and MacOSX) !
So now we have to investigate why this doesn't work in Java...
UDP: bind MulticastSocket to multicast address
----------------------------------------------
Key: JGRP-639
URL:
http://jira.jboss.com/jira/browse/JGRP-639
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assigned To: Bela Ban
Priority: Minor
Fix For: 2.7, 2.4.2, 2.5.2, 2.6.2
This doesn't work on Windows, so try-catch it and create new MulticastSocket with a
wildcard bind address.
(2.4.2 is the equivalent of 2.4.1. SP5) - Bela
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira