23 lines
461 B
Go
Raw Normal View History

2014-07-23 04:48:30 -07:00
package dht
import (
swarm "github.com/jbenet/go-ipfs/swarm"
)
2014-07-23 04:48:30 -07:00
// TODO. SEE https://github.com/jbenet/node-ipfs/blob/master/submodules/ipfs-dht/index.js
// IpfsDHT is an implementation of Kademlia with Coral and S/Kademlia modifications.
// It is used to implement the base IpfsRouting module.
type IpfsDHT struct {
routes RoutingTable
network *swarm.Swarm
}
func (dht *IpfsDHT) handleMessages() {
for mes := range dht.network.Chan.Incoming {
}
2014-07-23 04:48:30 -07:00
}