You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jae Kwon bff93107ef UPNP + hairpin probing 10 years ago
..
upnp UPNP + hairpin probing 10 years ago
README.md fixed algorithm 10 years ago
addrbook.go Begin writing RPC HTTP Server 10 years ago
addrbook_test.go addrbook cleanup 10 years ago
connection.go UPNP + hairpin probing 10 years ago
listener.go UPNP + hairpin probing 10 years ago
log.go UPNP + hairpin probing 10 years ago
netaddress.go Refactor Tx, Validator, and Account structure 10 years ago
peer.go Refactor Tx, Validator, and Account structure 10 years ago
peer_set.go implementing block_manager. currently only supports one datatype. 10 years ago
pex_reactor.go Refactor Tx, Validator, and Account structure 10 years ago
switch.go Refactor Tx, Validator, and Account structure 10 years ago
switch_test.go UPNP + hairpin probing 10 years ago
util.go cleanup 10 years ago

README.md

P2P Module

P2P provides an abstraction around peer-to-peer communication.
Communication happens via Reactors that react to messages from peers.
Each Reactor has one or more Channels of communication for each Peer.
Channels are multiplexed automatically and can be configured.
A Switch is started upon app start, and handles Peer management.
A PEXReactor implementation is provided to automate peer discovery.

Channels

Each peer connection is multiplexed into channels. The p2p module comes with a channel implementation used for peer discovery (called PEX, short for "peer exchange").

Channel "PEX"
Messages
  • pexRequestMsg
  • pexResponseMsg

Resources