projects
/
quix0rs-apt-p2p.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
this is the new khashmir, now based on Twisted and XML-RPC
[quix0rs-apt-p2p.git]
/
node.py
diff --git
a/node.py
b/node.py
index cb1940e3cd0b5f6fed8f6fb58307ee18d17ab725..6bc2ef2e7da0cf995cf30f9b287b86046d4b41d4 100644
(file)
--- a/
node.py
+++ b/
node.py
@@
-14,6
+14,9
@@
class Node:
def updateLastSeen(self):
self.lastSeen = time.time()
+ def senderDict(self):
+ return {'id': self.id, 'port' : self.port, 'host' : self.host}
+
def __repr__(self):
return `(self.id, self.host, self.port)`