-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
refactor(bitswap) use new net package #65
Comments
Question: How do i go about receiving a message from the net? (how does bitswap do this now?) |
BitSwap and DHT register Handlers. BitSwap's handler implementation is here: https://github.com/jbenet/go-ipfs/blob/net-dht-stash/bitswap/transmission/service_wrapper.go#L29 @jbenet just made some interface improvements so the way this gets wired up will be better. The procedure is as follows:
Note that the handler can be DHT or Bitswap sessions or some helper object. In the snippets above, the DHT session is used. In bitswap, presently a helper is used. I'm going to change Bitswap to behave the way the DHT does! |
Adding to the above, the dht still gets network because it may have to connect to (network.Dial) new peers |
@perfmode thanks for linking things here! super helpful to reading :) 👍 |
remove deprecated code and update README
Feat/pubkey extract
…/libp2p/go-libp2p-core-0.5.0 Bump github.com/libp2p/go-libp2p-core from 0.3.1 to 0.5.0
…dules/github.com/libp2p/go-libp2p-core-0.5.0 Bump github.com/libp2p/go-libp2p-core from 0.3.1 to 0.5.0
No description provided.
The text was updated successfully, but these errors were encountered: