5dea384510
peer: golint
2014-09-22 04:05:19 -07:00
71e411e538
Peer: only add addresses once.
2014-09-22 04:05:19 -07:00
34a0580ea6
godep multiaddr update
2014-09-22 04:05:19 -07:00
70ea4f540c
added peerstore to core
2014-09-22 04:05:19 -07:00
9c6a3b2091
peerstore test
2014-09-22 04:05:19 -07:00
c08b895851
Peerstore - threadsafe peer collection
...
will have persistence later on as a datastore passed in.
2014-09-22 04:05:19 -07:00
4cc1f60d91
Peerstore -- threadsafe collection
...
this will later have persistent storage, but no need yet
2014-09-22 04:05:19 -07:00
3711d54098
getValueSingle using SendRequest
2014-09-22 04:05:18 -07:00
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
0fca9868ae
uncomment all handlers
2014-09-22 04:05:18 -07:00
014157cac6
refac(bitswap) simply network interfaces
2014-09-22 04:05:18 -07:00
c34d4df96d
feat(bitswap:network) define a service interface for use with net/service/Service
2014-09-22 04:05:18 -07:00
503b1aa79e
feat(net:service) add SetHandler method
...
Allows the service to be used through an interface.
NB: If the handler is exposed directly, clients of the service cannot swap out their concrete references and replace them with interfaces
2014-09-22 04:05:18 -07:00
6fa0e2157f
refactor(bitswap) rename bitswap/transmission -> bitswap/network
...
makes more sense this way
2014-09-22 04:05:18 -07:00
06b5804d9c
wip(bitswap) port service wrapper
2014-09-22 04:05:18 -07:00
fda94d9f34
refactor(bitswap) rm SetStrategy method
...
remove this setter while the interface is under construction
2014-09-22 04:05:18 -07:00
0ab86de407
refac(bitswap:exch) HasBlock(ptr) -> HasBlock(val)
2014-09-22 04:05:18 -07:00
e07d3418c4
refac(bitswap:message) accept block by value
2014-09-22 04:05:18 -07:00
770cdebf7b
feat(bitswap) impl offline exchange
2014-09-22 04:05:18 -07:00
adf62a39d5
refac(bitswap:notif) replace block generating func
2014-09-22 04:05:17 -07:00
ad14d6c561
refac(bitswap:interface) GetBlock, HaveBlock -> Block, HasBlock
2014-09-22 04:05:17 -07:00
d91955b412
moved handlers to own file
2014-09-22 04:05:17 -07:00
c4536d127d
comment out diagnostic
...
it'll have to change lots since the listener is gone
2014-09-22 04:05:17 -07:00
69ed45c555
refactor peer distance search + handleGetProviders
2014-09-22 04:05:17 -07:00
9eb41e7237
ping + find peer
2014-09-22 04:05:17 -07:00
2522625bc6
lint nit
2014-09-22 04:05:17 -07:00
e872482aa7
refactor symbol
2014-09-22 04:05:17 -07:00
2f2808e9d8
handleGetValue
2014-09-22 04:05:17 -07:00
9c5c49b690
starting on dht-- msg handler
2014-09-22 04:05:17 -07:00
1461feec3f
simpler, clearer dht message
2014-09-22 04:05:17 -07:00
bccb3e871b
goroutine note comment
2014-09-22 04:05:16 -07:00
27d0e692ed
core dht setup
2014-09-22 04:05:16 -07:00
865109f562
expose handler in inet
2014-09-22 04:05:16 -07:00
b0d0b5fc20
better protobuf Makefile with wildcard.
2014-09-22 04:05:16 -07:00
9849794b07
Move Sender interface to network pkg
...
@perfmode sender is exactly what we need to pass in to dht/bitswap.
2014-09-22 04:05:16 -07:00
c7148cd83c
Service: remove RequestID from SendMessage
2014-09-22 04:05:16 -07:00
cb230b69a2
bugfix: service has a Start func
...
We were issuing handling goroutines in both NewService and Start
2014-09-22 04:05:16 -07:00
f9650a7906
allow service to have nil handler
...
@perfmode this means we can create a Service first, give it to
the network and protocol (removing interdep).
2014-09-22 04:05:16 -07:00
5426a1b512
refactor(blockservice) use bitswap.Exchange interface
2014-09-22 04:05:16 -07:00
2738d72095
feat(bitswap) add interface
2014-09-22 04:05:16 -07:00
dde6ad495e
todo(blockservice, core) add notes
...
* to wrap datastore for ease of use
* to pass a non-responsive bitswap mock rather than performing nil
* checks internally
2014-09-22 04:05:16 -07:00
b17bc2d54c
feat(net:service) add sender interface
2014-09-22 04:05:15 -07:00
ab460ed882
refactor(bs, core) rename bitswap objects
2014-09-22 04:05:15 -07:00
0075a47df0
fix(bs) remove concrete refs to swarm and dht
2014-09-22 04:05:15 -07:00
6aecb80395
chore(core) add TODOs to use contexts
2014-09-22 04:05:15 -07:00
0d3b0f1062
fix(bs:msg) remove swarm.Message
...
no longer exists. instead, use net message
2014-09-22 04:05:15 -07:00
68216245c6
fix(net) use NetMessage interface
2014-09-22 04:05:15 -07:00
556da76b2c
fix(cmd:ipfs) import err identify -> spipe
2014-09-22 04:05:15 -07:00
5b5e17ed79
style(bs:tx) rename receiver -> forwarder
2014-09-22 04:05:15 -07:00
2edc03aca1
style(bs:tx) rename network -> transmission
2014-09-22 04:05:15 -07:00