/** * Set the ttl for multicast socket * @param ttl the time to live for the socket. */ public void setMulticastTTL(int ttl) { this.ip_ttl=ttl; setTimeToLive(ttl, sock); }
sock=createMulticastSocket("jgroups.udp.sock", 0); setTimeToLive(ip_ttl, sock);
/** * Set the ttl for multicast socket * @param ttl the time to live for the socket. */ public void setMulticastTTL(int ttl) { this.ip_ttl=ttl; setTimeToLive(ttl, sock); }
sock=createMulticastSocket("jgroups.udp.sock", 0); setTimeToLive(ip_ttl, sock);