J
jm
I'm looking for the ruby equivalent of the perl Net:atricia module
which uses the Patricia Trie algorithm for storing objects in
association with a ip address/mask combinations. For example,
p = Patricia.new()
p.add_address('127.0.0.0/8', obj) # stores object obj
o = p.match('127.0.0.1') # returns object obj
Is there anything similar already in existence for ruby? Is it possible
to adapt the acl modules?
I'm trying to avoid re-inventing the wheel.
Jeff.
which uses the Patricia Trie algorithm for storing objects in
association with a ip address/mask combinations. For example,
p = Patricia.new()
p.add_address('127.0.0.0/8', obj) # stores object obj
o = p.match('127.0.0.1') # returns object obj
Is there anything similar already in existence for ruby? Is it possible
to adapt the acl modules?
I'm trying to avoid re-inventing the wheel.
Jeff.