P2p source code and several packages below
- Discover contains theKademlia protocol. It is a UDP-based p2p node discovery protocol.
- Discv5: new node discovery protocol. Still a test proposal. This analysis is not covered.
- Part of the code for nat network address translation
- Netutil: some tools
- Simulations simulation of p2p networks. This analysis is not covered.
Source code analysis of the discover package
- Discovered nodes for persistent storage database.go
- The core logic of the Kademlia protocol is tabel.go
- UDP protocol processing logic udp.go
- Network address translation nat.go
p2p/ package source analysis