Commit Graph

10 Commits

Author SHA1 Message Date
2b086634b2 introducing p2p pkg
I think it's time to move a lot of the peer-to-peer networking
but-not-ipfs-specific things into its own package: p2p.
This could in the future be split off into its own library.
The first thing to go is the peer.
2015-01-02 08:46:45 -08:00
3b37c43171 peer change: peer.Peer -> peer.ID
this is a major refactor of the entire codebase
it changes the monolithic peer.Peer into using
a peer.ID and a peer.Peerstore.

Other changes:
- removed handshake3.
-	testutil vastly simplified peer
-	secio bugfix + debugging logs
-	testutil: RandKeyPair
-	backpressure bugfix: w.o.w.
-	peer: added hex enc/dec
-	peer: added a PeerInfo struct
  PeerInfo is a small struct used to pass around a peer with
 	a set of addresses and keys. This is not meant to be a
 	complete view of the system, but rather to model updates to
 	the peerstore. It is used by things like the routing system.
-	updated peer/queue + peerset
-	latency metrics
-	testutil: use crand for PeerID gen
 	RandPeerID generates random "valid" peer IDs. it does not
 	NEED to generate keys because it is as if we lost the key
 	right away. fine to read some randomness and hash it. to
 	generate proper keys and an ID, use:
 	  sk, pk, _ := testutil.RandKeyPair()
 	  id, _ := peer.IDFromPublicKey(pk)
 	Also added RandPeerIDFatal helper
- removed old spipe
- updated seccat
- core: cleanup initIdentity
- removed old getFromPeerList
2014-12-23 08:33:32 -08:00
e10f49750a remove multilayered routing table from the DHT (for now) 2014-12-11 06:08:53 +00:00
28e083b902 peer.Peer is now an interface
![](http://m.memegen.com/77n7dk.jpg)
2014-10-20 03:26:46 -07:00
320f527284 Made routing code pass golint. 2014-08-20 18:36:32 -07:00
027449129f Made the DHT module pass golint 2014-08-20 18:36:21 -07:00
87ece46e35 tiered put/get implemented 2014-08-09 22:28:46 -07:00
c6c1b7af01 moved routing table code into its own package 2014-08-08 19:58:42 -07:00
ae556952dc address issues from code review (issue #25) 2014-08-08 18:09:21 -07:00
7399682a29 implement timeouts on listeners for the dht and add diagnostic stuff 2014-08-07 18:06:50 -07:00