[jboss-jira] [JBoss JIRA] Commented: (JGRP-639) UDP: bind MulticastSocket to multicast address

Bela Ban (JIRA) jira-events at lists.jboss.org
Fri Dec 28 18:28:43 EST 2007


    [ http://jira.jboss.com/jira/browse/JGRP-639?page=comments#action_12393523 ] 
            
Bela Ban commented on JGRP-639:
-------------------------------

This code works in Java *BUT NOT IN JGROUPS* !! Need to find out why UDP.createSockets() fails if I change it to look like the code below.

public class bla {
    public static void main(String[] args) throws Throwable {
        MulticastSocket sock;
        SocketAddress saddr=new InetSocketAddress("228.8.8.8", 5000);
        sock=new MulticastSocket(saddr);
        sock.joinGroup(InetAddress.getByName("228.8.8.8"));
    }
}

> 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

        



More information about the jboss-jira mailing list