Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net #89

Closed
wants to merge 119 commits into from
Closed

Net #89

wants to merge 119 commits into from

Commits on Sep 14, 2014

  1. panic -> error

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    8acabe7 View commit details
    Browse the repository at this point in the history
  2. Drop -> CloseConnection

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    32765ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ef6a44 View commit details
    Browse the repository at this point in the history
  4. added mux

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    8a90469 View commit details
    Browse the repository at this point in the history
  5. mux test stop.

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    ff4ebbf View commit details
    Browse the repository at this point in the history
  6. message pkg

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    05714d9 View commit details
    Browse the repository at this point in the history
  7. moved conn to own pkg

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    1d410e8 View commit details
    Browse the repository at this point in the history
  8. removed logging in conn_test

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    cd9debd View commit details
    Browse the repository at this point in the history
  9. Service + request

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    8186c34 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b056f3b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bff09da View commit details
    Browse the repository at this point in the history
  12. moved stuff

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    99416ba View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c4af51c View commit details
    Browse the repository at this point in the history
  14. rmv old swarm

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    82623d8 View commit details
    Browse the repository at this point in the history
  15. net interface

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    ccdf8f3 View commit details
    Browse the repository at this point in the history
  16. godeps multiaddr + swarm move.

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    a321cb1 View commit details
    Browse the repository at this point in the history
  17. better handshake for all.

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    311ffc1 View commit details
    Browse the repository at this point in the history
  18. removed old identify

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    08c890f View commit details
    Browse the repository at this point in the history
  19. merge wind HoC

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    42d86b5 View commit details
    Browse the repository at this point in the history
  20. starting to integrate new net

    jbenet committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    7223700 View commit details
    Browse the repository at this point in the history
  21. feat(net:message) get net package from e2430ae

    fix(net:msg) use vendored imports
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    1255b2a View commit details
    Browse the repository at this point in the history
  22. 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
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    dd48b13 View commit details
    Browse the repository at this point in the history
  23. refactor(bitswap) meslistener -> notifications

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    c2f1c15 View commit details
    Browse the repository at this point in the history
  24. fix(bitswap:notifications) shutdown on bs.Halt()

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    fb6a021 View commit details
    Browse the repository at this point in the history
  25. style(bitswap:notifications) rm explicit returns

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    ecd816b View commit details
    Browse the repository at this point in the history
  26. fix(bitswap:notifications) close chan on Publish

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    2284749 View commit details
    Browse the repository at this point in the history
  27. docs(bitswap:notifications) Subscribe

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    2ab8778 View commit details
    Browse the repository at this point in the history
  28. refactor(bitswap:notifications) move, rename

    add interface
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    6c6ee24 View commit details
    Browse the repository at this point in the history
  29. test(bitswap:notifications) check if chan is open

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    7083af9 View commit details
    Browse the repository at this point in the history
  30. feat(bitswap:msg) add ToNet() method

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    08eb7ba View commit details
    Browse the repository at this point in the history
  31. feat(bitswap:msg) define interfaces

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    da7432d View commit details
    Browse the repository at this point in the history
  32. feat(bitswap:msg) impl FromSwarm method

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    069f80d View commit details
    Browse the repository at this point in the history
  33. refactor(bitswap:msg) add, use getters

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    5d1bb6a View commit details
    Browse the repository at this point in the history
  34. refactor(bitswap:msg) move to package

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    ea7615a View commit details
    Browse the repository at this point in the history
  35. feat(bs:net) impl service wrapper

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    3490f3e View commit details
    Browse the repository at this point in the history
  36. style(bs:notific) let struct field be value

    rather than pointer
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    edf25b9 View commit details
    Browse the repository at this point in the history
  37. fix(bs:net) add peer to receiver interface

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    69ab644 View commit details
    Browse the repository at this point in the history
  38. 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.
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    b3f4fff View commit details
    Browse the repository at this point in the history
  39. feat(util) add u.Key().ToDatastore() method

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    04f280e View commit details
    Browse the repository at this point in the history
  40. refac(bs:msg) msg.Wantlist() returns []u.Key

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    1ffd658 View commit details
    Browse the repository at this point in the history
  41. style(bs:tx) rename network -> transmission

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    5cdfd2b View commit details
    Browse the repository at this point in the history
  42. style(bs:tx) rename receiver -> forwarder

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    3db1c02 View commit details
    Browse the repository at this point in the history
  43. fix(cmd:ipfs) import err identify -> spipe

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    25b3f77 View commit details
    Browse the repository at this point in the history
  44. fix(net) use NetMessage interface

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    78cc2a9 View commit details
    Browse the repository at this point in the history
  45. fix(bs:msg) remove swarm.Message

    no longer exists. instead, use net message
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    a80f98f View commit details
    Browse the repository at this point in the history
  46. chore(core) add TODOs to use contexts

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    69374a0 View commit details
    Browse the repository at this point in the history
  47. Merge pull request #76 from jbenet/net-plus-bitswap

    integrate bitswap with net
    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    d1d2949 View commit details
    Browse the repository at this point in the history
  48. fix(bs) remove concrete refs to swarm and dht

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    cb62727 View commit details
    Browse the repository at this point in the history
  49. refactor(bs, core) rename bitswap objects

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    2218fc2 View commit details
    Browse the repository at this point in the history
  50. feat(net:service) add sender interface

    Brian Tiger Chow committed Sep 14, 2014
    Configuration menu
    Copy the full SHA
    9fb4a87 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2014

  1. 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
    Brian Tiger Chow committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    036386b View commit details
    Browse the repository at this point in the history
  2. feat(bitswap) add interface

    Brian Tiger Chow committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    361115e View commit details
    Browse the repository at this point in the history
  3. refactor(blockservice) use bitswap.Exchange interface

    Brian Tiger Chow committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    9bba0d2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1 from jbenet/master

    merging
    llSourcell committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    0276c9b View commit details
    Browse the repository at this point in the history
  5. add test for DHT package #59

    llSourcell committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    a945d4d View commit details
    Browse the repository at this point in the history
  6. clarifying variables

    llSourcell committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    56f57b7 View commit details
    Browse the repository at this point in the history
  7. tests for Daemon Listener #59

    llSourcell committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    cebcf10 View commit details
    Browse the repository at this point in the history
  8. allow service to have nil handler

    @perfmode this means we can create a Service first, give it to
    the network and protocol (removing interdep).
    jbenet committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    b694a4c View commit details
    Browse the repository at this point in the history
  9. bugfix: service has a Start func

    We were issuing handling goroutines in both NewService and Start
    jbenet committed Sep 15, 2014
    Configuration menu
    Copy the full SHA
    598ad39 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2014

  1. Configuration menu
    Copy the full SHA
    9b93f46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79abc60 View commit details
    Browse the repository at this point in the history
  3. Move Sender interface to network pkg

    @perfmode sender is exactly what we need to pass in to dht/bitswap.
    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    a57ec77 View commit details
    Browse the repository at this point in the history
  4. using IDfromPubKey

    llSourcell committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    36dbe06 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f8ee61a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    27422ab View commit details
    Browse the repository at this point in the history
  7. expose handler in inet

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    fd00daa View commit details
    Browse the repository at this point in the history
  8. core dht setup

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    17f79d8 View commit details
    Browse the repository at this point in the history
  9. goroutine note comment

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    1e1f523 View commit details
    Browse the repository at this point in the history
  10. simpler, clearer dht message

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    3c1f277 View commit details
    Browse the repository at this point in the history
  11. starting on dht-- msg handler

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    18b2ee7 View commit details
    Browse the repository at this point in the history
  12. handleGetValue

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    e974910 View commit details
    Browse the repository at this point in the history
  13. refactor symbol

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    d81ab5e View commit details
    Browse the repository at this point in the history
  14. lint nit

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    5b14397 View commit details
    Browse the repository at this point in the history
  15. ping + find peer

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    a85a9ed View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e5b39fe View commit details
    Browse the repository at this point in the history
  17. comment out diagnostic

    it'll have to change lots since the listener is gone
    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    304bc71 View commit details
    Browse the repository at this point in the history
  18. moved handlers to own file

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    8fda238 View commit details
    Browse the repository at this point in the history
  19. refac(bitswap:interface) GetBlock, HaveBlock -> Block, HasBlock

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    ec28120 View commit details
    Browse the repository at this point in the history
  20. feat(util:testutil) add func to generate blocks in tests

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    02ea2a8 View commit details
    Browse the repository at this point in the history
  21. refac(bitswap:notif) replace block generating func

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    60e1fef View commit details
    Browse the repository at this point in the history
  22. feat(bitswap) impl offline exchange

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    e47f17d View commit details
    Browse the repository at this point in the history
  23. refac(bitswap:message) accept block by value

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    7ead09b View commit details
    Browse the repository at this point in the history
  24. refac(bitswap:exch) HasBlock(ptr) -> HasBlock(val)

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    6f1e9c8 View commit details
    Browse the repository at this point in the history
  25. refactor(bitswap) rm SetStrategy method

    remove this setter while the interface is under construction
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    976bbe9 View commit details
    Browse the repository at this point in the history
  26. wip(bitswap) port service wrapper

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    21b7fd0 View commit details
    Browse the repository at this point in the history
  27. refactor(bitswap) rename bitswap/transmission -> bitswap/network

    makes more sense this way
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    b7367fe View commit details
    Browse the repository at this point in the history
  28. 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
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    b38dfc0 View commit details
    Browse the repository at this point in the history
  29. feat(bitswap:network) define a service interface for use with net/ser…

    …vice/Service
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    f5ac6ca View commit details
    Browse the repository at this point in the history
  30. refac(bitswap) simply network interfaces

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    7eba6b8 View commit details
    Browse the repository at this point in the history
  31. uncomment all handlers

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    ae898b4 View commit details
    Browse the repository at this point in the history
  32. check type assertion

    `v.([]byte)` coming from a datastore can panic.
    `byt, ok := v.([]byte)` to be safe.
    
    @whyrusleeping
    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    c78b4c1 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    b67213d View commit details
    Browse the repository at this point in the history
  34. Peerstore -- threadsafe collection

    this will later have persistent storage, but no need yet
    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    ba6ce9f View commit details
    Browse the repository at this point in the history
  35. Peerstore - threadsafe peer collection

    will have persistence later on as a datastore passed in.
    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    56bc17f View commit details
    Browse the repository at this point in the history
  36. peerstore test

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    e869b06 View commit details
    Browse the repository at this point in the history
  37. added peerstore to core

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    c4459de View commit details
    Browse the repository at this point in the history
  38. godep multiaddr update

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    e83d4cf View commit details
    Browse the repository at this point in the history
  39. Peer: only add addresses once.

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    a231e67 View commit details
    Browse the repository at this point in the history
  40. peer: golint

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    540423d View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    ca604ba View commit details
    Browse the repository at this point in the history
  42. add Peerstore to dht

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    c8189ee View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    7b93349 View commit details
    Browse the repository at this point in the history
  44. updated Update function

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    59993c0 View commit details
    Browse the repository at this point in the history
  45. newMessage and more impl.

    jbenet committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    3573c30 View commit details
    Browse the repository at this point in the history
  46. feat(blockstore): implement blockstore

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    e7226b6 View commit details
    Browse the repository at this point in the history
  47. style(blockstore) move to top-level

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    f4a2c51 View commit details
    Browse the repository at this point in the history
  48. refac(bitswap) use blockstore

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    efc8f15 View commit details
    Browse the repository at this point in the history
  49. refac(bitswap): privatize bitswap

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    87eb9e6 View commit details
    Browse the repository at this point in the history
  50. chore(util) rm unused DatastoreKey method

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    b14ff4a View commit details
    Browse the repository at this point in the history
  51. refac(bitswap) privatize strategies

    temporarily. until bitswap is refactored
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    50dc943 View commit details
    Browse the repository at this point in the history
  52. refac(bitswap) privatize ledger

    temporarily. at least until refactor is complete
    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    9ed05a9 View commit details
    Browse the repository at this point in the history
  53. refac(bitswap) define Directory interface

    Brian Tiger Chow committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    62f815b View commit details
    Browse the repository at this point in the history
  54. Merge pull request #3 from jbenet/net

    Net
    llSourcell committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    5e1b8ed View commit details
    Browse the repository at this point in the history
  55. Merge pull request #4 from jbenet/net

    Net
    llSourcell committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    234e057 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2014

  1. merged conflict

    llSourcell committed Sep 17, 2014
    Configuration menu
    Copy the full SHA
    5159533 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2014

  1. Configuration menu
    Copy the full SHA
    1e93660 View commit details
    Browse the repository at this point in the history
  2. clarifying method name

    llSourcell committed Sep 18, 2014
    Configuration menu
    Copy the full SHA
    9262bc8 View commit details
    Browse the repository at this point in the history
  3. clarified method name

    llSourcell committed Sep 18, 2014
    Configuration menu
    Copy the full SHA
    d2a8fcc View commit details
    Browse the repository at this point in the history
  4. method changed

    llSourcell committed Sep 18, 2014
    Configuration menu
    Copy the full SHA
    51d6d25 View commit details
    Browse the repository at this point in the history