Home | Trees | Indices | Help |
|
---|
|
object --+ | AddrStrategy --+ | IPv4StrategyStd --+ | IPv4StrategyOpt
An optimised AddrStrategy for IPv4 addresses.
It uses pack()
and unpack()
from the
struct
module along with the inet_ntoa()
and
inet_aton()
from the socket
module great
improve the speed of certain operations (approx. 2.5 times faster than a
standard AddrStrategy configured for IPv4).
However, keep in mind that these modules might not be available
everywhere that Python itself is. Runtimes such as Google App Engine gut
the socket
module. struct
is also limited to
processing 32-bit integers which is fine for IPv4 but isn't suitable for
IPv6.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
Constructor.
|
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 29 23:23:24 2008 | http://epydoc.sourceforge.net |