| Trees | Indices | Help |
|
|---|
|
|
Some utitlity functions for use in the apt-p2p program.
|
|||
|
TestUtil Tests for the utilities. |
|||
|
|||
|
|||
|
|||
(string, int)
|
|
||
string
|
|
||
string
|
|
||
|
|||
isLocal = re.compile(r'^a compiled regular expression suitable for testing if an IP address is from a known local or private range |
|||
Imports: os, re, log, unittest
|
|||
Find the best IP address to use from a list of possibilities.
|
Extract the contact info from a compact peer representation.
|
Create a compact representation of peer contact info.
|
Format a byte size for reading by the user.
|
|
|||
isLocala compiled regular expression suitable for testing if an IP address is from a known local or private range
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 9 14:28:29 2008 | http://epydoc.sourceforge.net |