plugeth/p2p
Felix Lange 1440f9a37a p2p: new dialer, peer management without locks
The most visible change is event-based dialing, which should be an
improvement over the timer-based system that we have at the moment.
The dialer gets a chance to compute new tasks whenever peers change or
dials complete. This is better than checking peers on a timer because
dials happen faster. The dialer can now make more precise decisions
about whom to dial based on the peer set and we can test those
decisions without actually opening any sockets.

Peer management is easier to test because the tests can inject
connections at checkpoints (after enc handshake, after protocol
handshake).

Most of the handshake stuff is now part of the RLPx code. It could be
exported or move to its own package because it is no longer entangled
with Server logic.
2015-05-25 01:17:14 +02:00
..
discover p2p/discover: add ReadRandomNodes 2015-05-25 01:17:14 +02:00
nat p2p/nat: tweak port mapping log messages and levels 2015-05-14 12:54:59 +02:00
dial_test.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
dial.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
message_test.go p2p: use package rlp to encode messages 2015-03-19 15:11:02 +01:00
message.go p2p: added received at to peer message 2015-04-29 22:49:58 +02:00
peer_error.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
peer_test.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
peer.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
protocol.go p2p: print Cap as name/version 2015-02-13 23:54:34 +01:00
rlpx_test.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
rlpx.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
server_test.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00
server.go p2p: new dialer, peer management without locks 2015-05-25 01:17:14 +02:00