319 Commits

Author SHA1 Message Date
Juan Batiz-Benet
709f932e6e Fixed connections all over. 2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
bad7b6d460 dht.Connect(Peer) 2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
45796e5fdf remove start 2014-09-22 04:05:23 -07:00
Juan Batiz-Benet
b5f0a42bd6 better query processing (runner) 2014-09-22 04:05:22 -07:00
Juan Batiz-Benet
fdea4d9c5f got everything to build 2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
fa2b736bbe newMessage and more impl. 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
e85011ab43 updated Update function 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
9d0ba89b9a getFromPeerList and peerFromInfo 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
3867e32181 add Peerstore to dht 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
da908bed0e Peerstore -- threadsafe collection
this will later have persistent storage, but no need yet
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
6c1cdb39b5 getValueSingle using SendRequest 2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
d13b445da9 check type assertion
`v.([]byte)` coming from a datastore can panic.
`byt, ok := v.([]byte)` to be safe.

@whyrusleeping
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
6ed2d45182 moved handlers to own file 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
f5d1d35710 comment out diagnostic
it'll have to change lots since the listener is gone
2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
7c8c19c565 refactor peer distance search + handleGetProviders 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
9dff985f96 ping + find peer 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
d49c352d5e lint nit 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
cc85969fc5 refactor symbol 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
fcc6fccf67 handleGetValue 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
0c4b37be8f starting on dht-- msg handler 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
caeecd0f43 starting to integrate new net 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
9f04d5e839 godeps multiaddr + swarm move. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
66683e0417 network.Find -> network.GetPeer 2014-09-22 04:05:11 -07:00
Juan Batiz-Benet
0fa9069b14 Drop -> CloseConnection 2014-09-22 04:05:11 -07:00
Brian Tiger Chow
531769861d vendor dependencies with godep
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json

update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
Jeromy
bd5c670606 clean up merge of bren2010's crypto branch and merge into master 2014-09-08 18:17:57 +00:00
Jeromy
a3f0d585fb allow peers to realize that they are actually a provider for a value 2014-09-04 20:32:46 +00:00
Jeromy
6fc4fe92b7 fixing up some bitswap stuff after the PR 2014-08-28 12:01:03 -07:00
Jeromy
46057597bb bitswap first working commit! 2014-08-26 14:24:51 -07:00
Jeromy
5ccba3e387 basic implementation of bitswap, needs testing/verification that it works 2014-08-24 18:13:05 -07:00
Jeromy
1f31afdb46 refactor to allow use of mes_listener outside of dht 2014-08-23 22:25:50 -07:00
Jeromy
2f6d94a86b fix swarm message type code, i beleive it works well now 2014-08-20 18:42:40 -07:00
Jeromy
d574d518b1 add in message type routing to the swarm object. tired, needs cleanup. 2014-08-20 18:42:31 -07:00
Jeromy
fd754c778e add some more tests in 2014-08-20 18:42:26 -07:00
Jeromy
914f052d44 change providers map and lock over to an agent based approach for managing providers 2014-08-20 18:42:26 -07:00
Jeromy
334ea87302 fix a few race conditions and add in newlines to print statements 2014-08-20 18:42:26 -07:00
Chas Leichner
027449129f Made the DHT module pass golint 2014-08-20 18:36:21 -07:00
Jeromy
58b41361b5 rewrite message response listening framework 2014-08-15 22:37:53 -07:00
Jeromy
986088887d get implementation according to kademlia spec. 2014-08-15 09:39:38 -07:00
Jeromy
3454da1ab3 fix a few infinitely looping RPCs 2014-08-14 08:32:17 -07:00
Jeromy
99e304bcf9 not quite working yet, but closer 2014-08-12 22:10:44 -07:00
Jeromy
0a5e54210d modify use of swarm to not make duplicate connections 2014-08-12 15:37:26 -07:00
Jeromy
891400d240 more tests and add in table filtering by peer latency 2014-08-11 20:11:23 -07:00
Jeromy
10ef87b692 starting a new testing framework 2014-08-10 21:40:17 -07:00
Jeromy
e6ab2e2095 more work implementing coral type lookups 2014-08-10 21:02:05 -07:00
Jeromy
87ece46e35 tiered put/get implemented 2014-08-09 22:28:46 -07:00
Jeromy
c6c1b7af01 moved routing table code into its own package 2014-08-08 19:58:42 -07:00
Jeromy
ae556952dc address issues from code review (issue #25) 2014-08-08 18:09:21 -07:00
Jeromy
5bd8258ea1 add a unit test for provides functionality 2014-08-07 21:52:11 -07:00
Jeromy
7399682a29 implement timeouts on listeners for the dht and add diagnostic stuff 2014-08-07 18:06:50 -07:00