dht.go 461 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2
package dht

3 4 5 6
import (
	swarm "github.com/jbenet/go-ipfs/swarm"
)

Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
7 8 9 10 11 12 13
// 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
14 15 16 17 18 19 20 21

  network *swarm.Swarm
}

func (dht *IpfsDHT) handleMessages() {
	for mes := range dht.network.Chan.Incoming {

	}
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
22
}