ex_wire v0.1.1 ExWire.PeerSupervisor
The Peer Supervisor is responsible for maintaining a set of peer TCP connections.
We should ask bootnodes for a set of potential peers via the Discovery Protocol, and then we can connect to those nodes. Currently, we just connect to the Bootnodes themselves.
Link to this section Summary
Functions
Sends a packet to all active TCP connections. This is useful when we want to, for instance,
ask for a GetBlockBody from all peers for a given block hash
Link to this section Functions
Link to this function
send_packet(pid, packet)
Sends a packet to all active TCP connections. This is useful when we want to, for instance,
ask for a GetBlockBody from all peers for a given block hash.
Link to this function
start_link(bootnodes)