[Twisted-Python] matching ip ranges
Ed Suominen
general at eepatents.com
Wed Aug 29 09:55:34 MDT 2007
Alec Matusis wrote:
> We need to match IP ranges of connections, were ranges are specified in
> the “/” notation (e.g. 10.10.2.0/24)
>
> What is the best way to do this without consuming too much CPU resources
> when the connection rate is very high?
Take a look at the AddressRestrictorMixin in twisted_goodies.misc:
http://foss.eepatents.com/trac/Twisted-Goodies/browser/projects/Twisted-Goodies/trunk/twisted_goodies/misc/__init__.py
Best regards, Ed
More information about the Twisted-Python
mailing list