quix0rs-apt-p2p.git
17 years agoripped out xmlrpc, experimented with xmlrpc but with bencode, finally
burris [Thu, 16 Jan 2003 16:28:42 +0000 (16:28 +0000)]
ripped out xmlrpc, experimented with xmlrpc but with bencode, finally
settled on bencode rpc over Airhook

17 years agotwistified airhook, added reactor based tests
burris [Mon, 13 Jan 2003 07:08:01 +0000 (07:08 +0000)]
twistified airhook, added reactor based tests

17 years agorenamed OrderedConnection to StreamConnection
burris [Mon, 23 Dec 2002 03:19:57 +0000 (03:19 +0000)]
renamed OrderedConnection to StreamConnection

17 years agobug fixes, more tests, looking solid now
burris [Mon, 23 Dec 2002 02:59:11 +0000 (02:59 +0000)]
bug fixes, more tests, looking solid now

17 years agostream connection class
burris [Sun, 22 Dec 2002 11:02:32 +0000 (11:02 +0000)]
stream connection class

17 years agoairhook reliable datagram protocol
burris [Sun, 22 Dec 2002 08:40:59 +0000 (08:40 +0000)]
airhook reliable datagram protocol

17 years agoreformatting plus changed some method names, added a new function for "testing"
burris [Tue, 10 Dec 2002 04:29:09 +0000 (04:29 +0000)]
reformatting plus changed some method names, added a new function for "testing"

17 years agogeneral cleanup, added testing makefle
aaronsw [Mon, 9 Dec 2002 22:57:50 +0000 (22:57 +0000)]
general cleanup, added testing makefle

17 years agonow we store and retrieve node information from our database...
burris [Tue, 3 Dec 2002 03:49:58 +0000 (03:49 +0000)]
now we store and retrieve node information from our database...

17 years agoadd invalidateNode
burris [Tue, 3 Dec 2002 03:49:26 +0000 (03:49 +0000)]
add invalidateNode

17 years agoslight changes to test scripts
burris [Sun, 1 Dec 2002 22:56:40 +0000 (22:56 +0000)]
slight changes to test scripts

17 years agotab/space fix
burris [Sun, 1 Dec 2002 22:54:35 +0000 (22:54 +0000)]
tab/space fix

17 years agofixed borked tab/space problems, damn ProjectBuilder doesn't come with reasonable...
burris [Sun, 1 Dec 2002 21:08:01 +0000 (21:08 +0000)]
fixed borked tab/space problems, damn ProjectBuilder doesn't come with reasonable defaults

stopped using "int" for ivars since that conflicts with a builtin, now
use node.num for getting the integer representation of a node's ID

17 years agoutility module for random stuff
burris [Sun, 1 Dec 2002 21:06:08 +0000 (21:06 +0000)]
utility module for random stuff

has func for counting min/max/average peers in table for a list of
khashmir instances

17 years agoremoving unused btemplate.py
aaronsw [Thu, 28 Nov 2002 20:36:51 +0000 (20:36 +0000)]
removing unused btemplate.py

17 years agooops, another buglet
aaronsw [Thu, 28 Nov 2002 19:44:30 +0000 (19:44 +0000)]
oops, another buglet

17 years agofixed buglet
aaronsw [Thu, 28 Nov 2002 19:37:46 +0000 (19:37 +0000)]
fixed buglet

17 years agogeneral cleanup. test_replace_stale_node doesn't pass but it didn't before either
aaronsw [Thu, 28 Nov 2002 19:34:43 +0000 (19:34 +0000)]
general cleanup. test_replace_stale_node doesn't pass but it didn't before either

17 years agooops, forgot to test. fixed little bugs
aaronsw [Thu, 28 Nov 2002 18:00:24 +0000 (18:00 +0000)]
oops, forgot to test. fixed little bugs

17 years agogeneral cleanup: tabs->spaces, comments->docstrings, etc. should whrandom become...
aaronsw [Thu, 28 Nov 2002 17:58:30 +0000 (17:58 +0000)]
general cleanup: tabs->spaces, comments->docstrings, etc. should whrandom become random?

17 years agouse autocommit
burris [Thu, 28 Nov 2002 01:15:58 +0000 (01:15 +0000)]
use autocommit

17 years agoquiet down the factory
burris [Thu, 28 Nov 2002 01:15:44 +0000 (01:15 +0000)]
quiet down the factory

17 years agofix bug in setting duplicate kv
burris [Thu, 28 Nov 2002 01:13:08 +0000 (01:13 +0000)]
fix bug in setting duplicate kv

17 years agocanonicalize time for accurate sorting
burris [Mon, 14 Oct 2002 06:11:15 +0000 (06:11 +0000)]
canonicalize time for accurate sorting

17 years agoremoved bsddb3 depenendcy
burris [Mon, 14 Oct 2002 05:36:51 +0000 (05:36 +0000)]
removed bsddb3 depenendcy

17 years agoremoved h(k+v) field from database, wasn't necessary
burris [Mon, 14 Oct 2002 04:30:23 +0000 (04:30 +0000)]
removed h(k+v) field from database, wasn't necessary

17 years agochanged from bsddb3 to pysqlite
burris [Mon, 14 Oct 2002 03:53:01 +0000 (03:53 +0000)]
changed from bsddb3 to pysqlite

17 years agomo' constants
burris [Tue, 1 Oct 2002 05:11:03 +0000 (05:11 +0000)]
mo' constants

17 years agoall rpc's return ([<args>], {<sender}), previously ping did not
burris [Tue, 1 Oct 2002 05:10:09 +0000 (05:10 +0000)]
all rpc's return ([<args>], {<sender}), previously ping did not
un hard-coded some constants

17 years agoautomatically check responses to make sure it's from the node
burris [Tue, 1 Oct 2002 05:07:14 +0000 (05:07 +0000)]
automatically check responses to make sure it's from the node
we are expecting it to be from, else errback

17 years agono longer keep our own node in table
burris [Tue, 1 Oct 2002 05:05:28 +0000 (05:05 +0000)]
no longer keep our own node in table

17 years agoupdate key expirer to use bencode - store access should be abstracted
burris [Tue, 24 Sep 2002 23:34:52 +0000 (23:34 +0000)]
update key expirer to use bencode - store access should be abstracted

17 years agoadded a short script with instructions on how to install on debian
aaronsw [Tue, 24 Sep 2002 01:40:50 +0000 (01:40 +0000)]
added a short script with instructions on how to install on debian

17 years agofix missing arg in storevalue errback
burris [Tue, 24 Sep 2002 01:37:46 +0000 (01:37 +0000)]
fix missing arg in storevalue errback

17 years agofix bugs in stringify
burris [Mon, 23 Sep 2002 23:43:43 +0000 (23:43 +0000)]
fix bugs in stringify

17 years agofix typo
burris [Mon, 23 Sep 2002 23:12:56 +0000 (23:12 +0000)]
fix typo

17 years agofix peer update problem connection refused in store value
burris [Mon, 23 Sep 2002 23:09:35 +0000 (23:09 +0000)]
fix peer update problem connection refused in store value

17 years agoremoved client side connection host determination
burris [Mon, 23 Sep 2002 23:04:49 +0000 (23:04 +0000)]
removed client side connection host determination

17 years agofix missing arg conversion
burris [Mon, 23 Sep 2002 22:20:34 +0000 (22:20 +0000)]
fix missing arg conversion

17 years agofix refreshTable
burris [Mon, 23 Sep 2002 22:12:17 +0000 (22:12 +0000)]
fix refreshTable

17 years agominor fixes
burris [Mon, 23 Sep 2002 22:11:16 +0000 (22:11 +0000)]
minor fixes

17 years agograb the remote end's IP address
burris [Mon, 23 Sep 2002 22:09:52 +0000 (22:09 +0000)]
grab the remote end's IP address

17 years agodon't touch buckets when we are only reading from them
burris [Mon, 23 Sep 2002 22:08:40 +0000 (22:08 +0000)]
don't touch buckets when we are only reading from them

17 years agomore constants
burris [Mon, 23 Sep 2002 22:07:51 +0000 (22:07 +0000)]
more constants

17 years agobencode is back, for marshalling before going into the database - pickle module has...
burris [Mon, 23 Sep 2002 22:07:28 +0000 (22:07 +0000)]
bencode is back, for marshalling before going into the database - pickle module has security issues

17 years agomuch better method of converting between hashes<>integers
burris [Mon, 23 Sep 2002 22:06:41 +0000 (22:06 +0000)]
much better method of converting between hashes<>integers

17 years agofix bug where less than K nodes were being utilized from the seed nodes of find nodes...
burris [Sun, 22 Sep 2002 07:38:55 +0000 (07:38 +0000)]
fix bug where less than K nodes were being utilized from the seed nodes of find nodes/values requests

17 years agoreturn K nodes and not K-1
burris [Sun, 22 Sep 2002 07:07:06 +0000 (07:07 +0000)]
return K nodes and not K-1

17 years agobetter readme
burris [Sat, 21 Sep 2002 20:43:40 +0000 (20:43 +0000)]
better readme

17 years agomuch better handling of ip addresses and potentially unreachable peers
burris [Sat, 21 Sep 2002 20:43:20 +0000 (20:43 +0000)]
much better handling of ip addresses and potentially unreachable peers

17 years agomoved some constants
burris [Sat, 21 Sep 2002 20:42:18 +0000 (20:42 +0000)]
moved some constants

17 years agofixed some serious bugs in findNode
burris [Sat, 21 Sep 2002 20:41:25 +0000 (20:41 +0000)]
fixed some serious bugs in findNode

also, change behaviour of insertNode based on if we have a confirmed contact or not

17 years agoadd some default bogus values in __init__
burris [Sat, 21 Sep 2002 20:39:14 +0000 (20:39 +0000)]
add some default bogus values in __init__

17 years agorpcclient now returns a list containing the return value then a dict currently containing
burris [Sat, 21 Sep 2002 20:38:38 +0000 (20:38 +0000)]
rpcclient now returns a list containing the return value then a dict currently containing
a key 'host' which is the actual ip address we used to contact the peer that is responding

17 years agobug fix in store value
burris [Sun, 15 Sep 2002 19:35:56 +0000 (19:35 +0000)]
bug fix in store value

update testing

17 years agounresponsive peers are now purged from the routing table
burris [Sat, 14 Sep 2002 07:26:50 +0000 (07:26 +0000)]
unresponsive peers are now purged from the routing table

17 years agodon't return duplicates if we have a key in our store
burris [Sat, 14 Sep 2002 00:37:51 +0000 (00:37 +0000)]
don't return duplicates if we have a key in our store

17 years agofixed nonresponsive node handler
burris [Sat, 14 Sep 2002 00:19:10 +0000 (00:19 +0000)]
fixed nonresponsive node handler

17 years agocall from thread
burris [Fri, 13 Sep 2002 21:25:59 +0000 (21:25 +0000)]
call from thread

17 years agonow search local store for keys in addititon to net
burris [Fri, 13 Sep 2002 21:18:51 +0000 (21:18 +0000)]
now search local store for keys in addititon to net

only return keys that actually match!

17 years agofix bug in find_node not encoding target properly
burris [Fri, 13 Sep 2002 20:57:27 +0000 (20:57 +0000)]
fix bug in find_node not encoding target properly

17 years agotype fix, sorry
burris [Fri, 13 Sep 2002 20:25:07 +0000 (20:25 +0000)]
type fix, sorry

17 years agokeys persist for 24 hours +- 1 hour
burris [Fri, 13 Sep 2002 20:15:34 +0000 (20:15 +0000)]
keys persist for 24 hours +- 1 hour

17 years agofix bug in pong handler
burris [Fri, 13 Sep 2002 20:13:31 +0000 (20:13 +0000)]
fix bug in pong handler

17 years agokeys and values passed as binary instead of encoded strings
burris [Fri, 13 Sep 2002 20:07:12 +0000 (20:07 +0000)]
keys and values passed as binary instead of encoded strings

17 years agofix tests
burris [Fri, 13 Sep 2002 19:42:06 +0000 (19:42 +0000)]
fix tests

17 years agonow we are using xml/base64
burris [Fri, 13 Sep 2002 19:39:20 +0000 (19:39 +0000)]
now we are using xml/base64

17 years agoupdated for base64 encoding of hashes and values
burris [Fri, 13 Sep 2002 19:31:21 +0000 (19:31 +0000)]
updated for base64 encoding of hashes and values

17 years agofixed 2.1 incompatibility
burris [Fri, 13 Sep 2002 02:26:02 +0000 (02:26 +0000)]
fixed 2.1 incompatibility

17 years agofix 2.1 incompatibility
burris [Fri, 13 Sep 2002 02:22:37 +0000 (02:22 +0000)]
fix 2.1 incompatibility

17 years agofix typo
burris [Thu, 12 Sep 2002 01:01:48 +0000 (01:01 +0000)]
fix typo

17 years agonow with auto-expiring of stored keys/values
burris [Sat, 7 Sep 2002 19:13:28 +0000 (19:13 +0000)]
now with auto-expiring of stored keys/values

lots of typo bug fixes

17 years agoupdated for new khashmir
burris [Fri, 6 Sep 2002 18:39:42 +0000 (18:39 +0000)]
updated for new khashmir

17 years agocall back from GetValues each time we get some new values
burris [Tue, 3 Sep 2002 08:24:47 +0000 (08:24 +0000)]
call back from GetValues each time we get some new values

17 years agonow we gracefully deal with multiple values per key
burris [Tue, 3 Sep 2002 08:23:56 +0000 (08:23 +0000)]
now we gracefully deal with multiple values per key

valueForKey callback is fired repeatedly with new results until it returns an empty list

17 years agomade user agent string a variable
burris [Tue, 3 Sep 2002 08:22:22 +0000 (08:22 +0000)]
made user agent string a variable

17 years agoupdated docs
burris [Tue, 3 Sep 2002 00:37:55 +0000 (00:37 +0000)]
updated docs

17 years agotest harness update
burris [Mon, 2 Sep 2002 21:42:16 +0000 (21:42 +0000)]
test harness update

17 years agoupdated test
burris [Mon, 2 Sep 2002 19:50:26 +0000 (19:50 +0000)]
updated test

17 years agofinding values is now fixed
burris [Mon, 2 Sep 2002 17:32:28 +0000 (17:32 +0000)]
finding values is now fixed

17 years agomoved actions into their own file
burris [Mon, 2 Sep 2002 08:14:41 +0000 (08:14 +0000)]
moved actions into their own file

17 years agothis is the new khashmir, now based on Twisted and XML-RPC
burris [Mon, 2 Sep 2002 08:04:29 +0000 (08:04 +0000)]
this is the new khashmir, now based on Twisted and XML-RPC

store/find value doesn't seem to work yet

18 years agofindCloseNodes() is the replacement for populateTable()
burris [Tue, 23 Jul 2002 02:44:07 +0000 (02:44 +0000)]
findCloseNodes() is the replacement for populateTable()

18 years agoadded some corrections to the quick start... is there a replacement for populateTable...
aaronsw [Sun, 21 Jul 2002 07:15:41 +0000 (07:15 +0000)]
added some corrections to the quick start... is there a replacement for populateTable, drue?

18 years agominor comment change
burris [Fri, 19 Jul 2002 20:25:19 +0000 (20:25 +0000)]
minor comment change

18 years agoInitial revision
burris [Fri, 19 Jul 2002 20:23:12 +0000 (20:23 +0000)]
Initial revision