tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/mcast McastServiceImpl.java
Date Fri, 30 Apr 2004 15:28:02 GMT
fhanik      2004/04/30 08:28:02

  Modified:    modules/cluster/src/share/org/apache/catalina/cluster/mcast
                        McastServiceImpl.java
  Log:
  Setting the interface on the multicast service if there is a bind address
  
  Revision  Changes    Path
  1.10      +6 -1      jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/mcast/McastServiceImpl.java
  
  Index: McastServiceImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/mcast/McastServiceImpl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- McastServiceImpl.java	27 Feb 2004 14:58:56 -0000	1.9
  +++ McastServiceImpl.java	30 Apr 2004 15:28:02 -0000	1.10
  @@ -117,6 +117,11 @@
       throws IOException {
           if ( bind != null) socket = new MulticastSocket(new java.net.InetSocketAddress(bind,port));
           else socket = new MulticastSocket(port);
  +        if ( bind != null ) {
  +            log.info("Setting multihome multicast interface to:"+bind);
  +            socket.setInterface(bind);
  +            log.info("Done setting interface for multicast.");
  +        }//end if
           this.member = member;
           address = mcastAddress;
           this.port = port;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message