Displaying 2 results from an estimated 2 matches for "conret".
Did you mean:
connet
2004 May 10
8
Packet marking for ingress shapping and NET
Hi,
I have typical situation, local LAN with private addresses, translated
via NAT to internet. I need to shape ingress traffic (from internet to
local LAN) in several HTB queues accorting to destination (private not
public) IP. So I need mark packets to divide them to corresponding
queue. According to http://www.docum.org/stef.coene/qos/kptd/ I thing I
have only one way how to do it, because
2006 Jul 02
7
Generic SingleTable inheritance
...(propertyName)
# there should be(at most) one
property = properties.find(:first, :conditions => [ "name = ?",
propertyName])
if (property.nil?)
return nil
else
return property.value
end
end
end
Now we can dynamically "add" properties to our conrete objects(classes).
E.g.:
class Person < AbstractGenericThing
end
person = Person.new
person.GivenName = "John"
person.Name = "Smith"
person.GivenName
>> John
person.Name
>> Smith
...
Persistence works as expected, hence I am inclined to go with this
design.
BE...