End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Rinda::RingFinger.new
new(broadcast_list=@@broadcast_list, port=Ring_PORT)
lib/rinda/ring.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rinda/ring.rb, line 344
def initialize(broadcast_list=@@broadcast_list, port=Ring_PORT)
@broadcast_list = broadcast_list || ['localhost']
@port = port
@primary = nil
@rings = []
@multicast_hops = 1
@multicast_interface = 0
end
Creates a new RingFinger that will look for RingServers at port on the addresses in broadcast_list.
If broadcast_list contains a multicast address then multicast queries will be made using the given multicast_hops and multicast_interface.