Commit Graph

94 Commits

Author SHA1 Message Date
Juan Batiz-Benet
15a823d058 newMessage and more impl. 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
0773e584fd updated Update function 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
3ae7021700 getFromPeerList and peerFromInfo 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
e4e021085b add Peerstore to dht 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
34a0580ea6 godep multiaddr update 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
4cc1f60d91 Peerstore -- threadsafe collection
this will later have persistent storage, but no need yet
2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
3711d54098 getValueSingle using SendRequest 2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
520640840f 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
0fca9868ae uncomment all handlers 2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
d91955b412 moved handlers to own file 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
c4536d127d 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
69ed45c555 refactor peer distance search + handleGetProviders 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
9eb41e7237 ping + find peer 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
2522625bc6 lint nit 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
e872482aa7 refactor symbol 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
2f2808e9d8 handleGetValue 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
9c5c49b690 starting on dht-- msg handler 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
1461feec3f simpler, clearer dht message 2014-09-22 04:05:17 -07:00
Juan Batiz-Benet
b0d0b5fc20 better protobuf Makefile with wildcard. 2014-09-22 04:05:16 -07:00
Brian Tiger Chow
0075a47df0 fix(bs) remove concrete refs to swarm and dht 2014-09-22 04:05:15 -07:00
Juan Batiz-Benet
c14123397a starting to integrate new net 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
67e76c0acc godeps multiaddr + swarm move. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
2563e9204c network.Find -> network.GetPeer 2014-09-22 04:05:11 -07:00
Juan Batiz-Benet
71ec4f91dc Drop -> CloseConnection 2014-09-22 04:05:11 -07:00
Jeromy
d326fc61e4 fix typo that caused test failure in dht_test.go 2014-09-18 18:32:58 +00:00
Jeromy
b5a1b1c658 improve cleaning up in dht tests. 2014-09-15 20:45:36 +00:00
Siraj Ravel
0b5447a60a checking returned value 2014-09-14 21:44:19 -07:00
Siraj Ravel
e6bc0772ed Test for getLocal method in DHT 2014-09-14 20:59:09 -07:00
Siraj Ravel
b88ee2870a golint cleanup 2014-09-11 12:25:52 -07:00
Brian Tiger Chow
7968b45e58 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
1fa7c07dc7 clean up merge of bren2010's crypto branch and merge into master 2014-09-08 18:17:57 +00:00
Jeromy
275b03f814 rework dagreader to have a dagservice for node resolution 2014-09-06 22:11:44 +00:00
Jeromy
f52958850e Merge branch 'master' into crypto
Conflicts:
	routing/dht/dht.go
2014-09-04 20:46:39 +00:00
Jeromy
85273daaa5 allow peers to realize that they are actually a provider for a value 2014-09-04 20:32:46 +00:00
Jeromy
4b97f1f270 create new crypto package and make rest of repo use it 2014-09-03 20:15:10 +00:00
Jeromy
a5d54ea29e fix up tests that started failing after changing identify code 2014-09-01 21:55:59 -07:00
Jeromy
45fc43c9cf add pub/priv key code to identify, not complete yet 2014-09-01 16:09:03 -07:00
Jeromy
fcff5a5c96 rework bitswap to reflect discussion on PR #32 2014-08-28 16:48:00 -07:00
Jeromy
af2f04ae89 fixing up some bitswap stuff after the PR 2014-08-28 12:01:03 -07:00
Jeromy
cfdf01d58a bitswap first working commit! 2014-08-26 14:24:51 -07:00
Jeromy
678db4fa40 more work on bitswap and other code cleanup 2014-08-25 09:44:42 -07:00
Jeromy
91e4675cbf basic implementation of bitswap, needs testing/verification that it works 2014-08-24 18:13:05 -07:00
Jeromy
c5e7273cab refactor to allow use of mes_listener outside of dht 2014-08-23 22:25:50 -07:00
Jeromy
05b80afc35 fix swarm message type code, i beleive it works well now 2014-08-20 18:42:40 -07:00
Jeromy
afdac2ca3a add in message type routing to the swarm object. tired, needs cleanup. 2014-08-20 18:42:31 -07:00
Jeromy
060930c486 removed failure call i forgot to remove 2014-08-20 18:42:26 -07:00
Jeromy
c9c9420912 add some more tests in 2014-08-20 18:42:26 -07:00
Jeromy
35ed8c460c change providers map and lock over to an agent based approach for managing providers 2014-08-20 18:42:26 -07:00
Jeromy
3c1580e1d1 fix a few race conditions and add in newlines to print statements 2014-08-20 18:42:26 -07:00
Chas Leichner
a6851fa55b Made routing code pass golint. 2014-08-20 18:36:32 -07:00