|
|
|
|
SimPeer
|
get(self,
peerid)
Returns:
SimPeer object corresponding to name or None if nonexistant |
source code
|
|
|
|
|
|
|
|
|
|
|
|
SimPeer
|
initPeer(self,
peerid,
pubkey,
ip,
port,
sid,
num_neighbors=4)
Returns:
a reference to the created peer |
source code
|
|
|
|
connect(self,
v1,
v2)
Creates connection between two nodes and selects Neighbor ID (NID). |
source code
|
|
|
|
randConnect(self,
peerid,
numpeers)
Assign 'numpeers' many randomly selected neighbors to peer with id ==
peerid |
source code
|
|
|
|
|
|
|
|
|
|
| getPathsToFile(self,
src,
infohash,
how_many=5,
is_seed=False,
minhops=3) |
source code
|
|
|
|
| getTrackingCodes(self,
source,
infohash,
count=3) |
source code
|
|
|
string
|
encryptTC(self,
pathByNames,
prevNbr=None,
plaintext='#',
msglen=4096)
Returns an encrypted tracking code |
source code
|
|