Commit Graph

301 Commits

Author SHA1 Message Date
Brian Tiger Chow
7fcb5d3a4b feat(bs:net) impl service wrapper 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
b8bd2bc455 refactor(bitswap:msg) move to package 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
282acb8f26 refactor(bitswap:msg) add, use getters 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
21639564e7 feat(bitswap:msg) impl FromSwarm method 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
70999886c5 feat(bitswap:msg) define interfaces 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
24224979bb feat(bitswap:msg) add ToNet() method 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
2f4175a00d test(bitswap:notifications) check if chan is open 2014-09-22 04:05:14 -07:00
Brian Tiger Chow
a7ef09554f refactor(bitswap:notifications) move, rename
add interface
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
cc163a955d docs(bitswap:notifications) Subscribe 2014-09-22 04:05:13 -07:00
Brian Tiger Chow
b1155a0bb6 fix(bitswap:notifications) close chan on Publish 2014-09-22 04:05:13 -07:00
Brian Tiger Chow
7c378126f5 style(bitswap:notifications) rm explicit returns 2014-09-22 04:05:13 -07:00
Brian Tiger Chow
d294f7dcb2 fix(bitswap:notifications) shutdown on bs.Halt() 2014-09-22 04:05:13 -07:00
Brian Tiger Chow
b28343cffe refactor(bitswap) meslistener -> notifications 2014-09-22 04:05:13 -07:00
Brian Tiger Chow
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
Brian Tiger Chow
add0f3f935 feat(net:message) get net package from e2430ae427
fix(net:msg) use vendored imports
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
c14123397a starting to integrate new net 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
f71be6e9cc merge wind HoC 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
5684fa2362 removed old identify 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
c787adaa65 better handshake for all. 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
2b03664ae4 net interface 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
d6e8e55f00 rmv old swarm 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
a273a03efc remove handshake for now (need to merge and move) 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
453a66709f moved stuff 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
0ac4a2ba93 swarm rewrite, doesnt yet work (tests) 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
035d600f28 Godeps: use in net + new multiaddr 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
06b651c454 Service + request 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
ffad3bb6af removed logging in conn_test 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
c59125b64c moved conn to own pkg 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
5c79fc48e2 message pkg 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
be01dcf172 mux test stop. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
161f8158a8 added mux 2014-09-22 04:05:11 -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
Juan Batiz-Benet
d934806eaf panic -> error 2014-09-22 04:05:11 -07:00
Jeromy
f2d2d3991d update readme and dev guide 2014-09-19 05:34:39 +00:00
llSourcell
5fafaa42e8 fmt the test 2014-09-18 12:49:57 -07:00
llSourcell
8dd83ee17c clarifying method name 2014-09-18 12:28:56 -07:00
llSourcell
8eb13eb6be tests for Daemon Listener #59
using IDfromPubKey
2014-09-18 11:59:14 -07:00
Jeromy
d326fc61e4 fix typo that caused test failure in dht_test.go 2014-09-18 18:32:58 +00:00
Jeromy
a2f9099859 Merge branch 'master' of github.com:jbenet/go-ipfs 2014-09-17 06:04:43 +00:00
Jeromy
2607bee4d6 Change config flag to accept config dir instead of file path 2014-09-17 06:03:58 +00:00
Brian Tiger Chow
2a7dcb06ca Merge pull request #85 from jbenet/feat/blockstore
feat(blockstore): implement blockstore
2014-09-16 21:21:57 -07:00
Jeromy
9e4b8586a9 Add config flag to cmd line interface 2014-09-17 02:49:36 +00:00
Brian Tiger Chow
697625a9e5 feat(util:testutil) add NewBlockOrFail(t, data) factory method
for use in tests
2014-09-16 04:03:30 -07:00
Brian Tiger Chow
be835662f2 style(blockstore) move to top-level 2014-09-16 03:53:57 -07:00
Juan Batiz-Benet
c049a5c345 Merge pull request #83 from jbenet/docker
chore(docker) create a basic ipfs image
2014-09-16 03:52:38 -07:00
Brian Tiger Chow
ee49d0b79f fix(docker) listen on all interfaces 2014-09-16 03:47:31 -07:00
Brian Tiger Chow
42514f2ed7 feat(blockstore): implement blockstore 2014-09-16 03:37:52 -07:00
Brian Tiger Chow
8bd381ed32 chore(docker) create a basic ipfs image 2014-09-15 23:13:00 -07:00