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
806b3c2977
refac(bs:msg) msg.Wantlist() returns []u.Key
2014-09-22 04:05:15 -07:00
96ab834325
feat(util) add u.Key().ToDatastore() method
2014-09-22 04:05:15 -07:00
78f0f5b0b9
refac(bs:msg) let msg.Blocks() return []blocks
...
discard erroneous values
wherever blocks cannot be nil, use value rather than pointer. only use
pointers when absolutely necessary.
2014-09-22 04:05:14 -07:00
a3487eb491
fix(bs:net) add peer to receiver interface
2014-09-22 04:05:14 -07:00
baafc6fdf2
style(bs:notific) let struct field be value
...
rather than pointer
2014-09-22 04:05:14 -07:00
7fcb5d3a4b
feat(bs:net) impl service wrapper
2014-09-22 04:05:14 -07:00
b8bd2bc455
refactor(bitswap:msg) move to package
2014-09-22 04:05:14 -07:00
282acb8f26
refactor(bitswap:msg) add, use getters
2014-09-22 04:05:14 -07:00
21639564e7
feat(bitswap:msg) impl FromSwarm method
2014-09-22 04:05:14 -07:00
70999886c5
feat(bitswap:msg) define interfaces
2014-09-22 04:05:14 -07:00
24224979bb
feat(bitswap:msg) add ToNet() method
2014-09-22 04:05:14 -07:00
2f4175a00d
test(bitswap:notifications) check if chan is open
2014-09-22 04:05:14 -07:00
a7ef09554f
refactor(bitswap:notifications) move, rename
...
add interface
2014-09-22 04:05:14 -07:00
cc163a955d
docs(bitswap:notifications) Subscribe
2014-09-22 04:05:13 -07:00
b1155a0bb6
fix(bitswap:notifications) close chan on Publish
2014-09-22 04:05:13 -07:00
7c378126f5
style(bitswap:notifications) rm explicit returns
2014-09-22 04:05:13 -07:00
d294f7dcb2
fix(bitswap:notifications) shutdown on bs.Halt()
2014-09-22 04:05:13 -07:00
b28343cffe
refactor(bitswap) meslistener -> notifications
2014-09-22 04:05:13 -07:00
455c6582f5
refactor(bitswap) leverage third-party pubsub lib
...
use a third-party pubsub library for internal communications
Insights:
* Within bitswap, the actors don't need anything more than simple pubsub
behavior. Wrapping and unwrapping messages proves unneccessary.
Changes:
* Simplifies the interface for both actors calling GetBlock and actors
receiving blocks on the network
* Leverages a well-tested third-party pubsub library
Design Goals:
* reduce complexity
* extract implementation details (wrapping and unwrapping data, etc)
from bitswap and let bitswap focus on composition of core algorithms
operations
2014-09-22 04:05:13 -07:00
add0f3f935
feat(net:message) get net package from e2430ae4279
...
fix(net:msg) use vendored imports
2014-09-22 04:05:13 -07:00
c14123397a
starting to integrate new net
2014-09-22 04:05:13 -07:00
f71be6e9cc
merge wind HoC
2014-09-22 04:05:13 -07:00
5684fa2362
removed old identify
2014-09-22 04:05:13 -07:00
c787adaa65
better handshake for all.
2014-09-22 04:05:13 -07:00
67e76c0acc
godeps multiaddr + swarm move.
2014-09-22 04:05:12 -07:00
2b03664ae4
net interface
2014-09-22 04:05:12 -07:00
d6e8e55f00
rmv old swarm
2014-09-22 04:05:12 -07:00
a273a03efc
remove handshake for now (need to merge and move)
2014-09-22 04:05:12 -07:00
453a66709f
moved stuff
2014-09-22 04:05:12 -07:00
0ac4a2ba93
swarm rewrite, doesnt yet work (tests)
2014-09-22 04:05:12 -07:00
035d600f28
Godeps: use in net + new multiaddr
2014-09-22 04:05:12 -07:00
06b651c454
Service + request
2014-09-22 04:05:12 -07:00
ffad3bb6af
removed logging in conn_test
2014-09-22 04:05:12 -07:00
c59125b64c
moved conn to own pkg
2014-09-22 04:05:12 -07:00
5c79fc48e2
message pkg
2014-09-22 04:05:12 -07:00
be01dcf172
mux test stop.
2014-09-22 04:05:12 -07:00
161f8158a8
added mux
2014-09-22 04:05:11 -07:00
2563e9204c
network.Find -> network.GetPeer
2014-09-22 04:05:11 -07:00
71ec4f91dc
Drop -> CloseConnection
2014-09-22 04:05:11 -07:00
d934806eaf
panic -> error
2014-09-22 04:05:11 -07:00
f2d2d3991d
update readme and dev guide
2014-09-19 05:34:39 +00:00