Elixium Core v0.3.4 Elixium.P2P.Peer View Source

Contains functionality for communicating with other peers

Link to this section Summary

Functions

Given a peer supervisor, return a list of all the handlers that are currently connected to another peer

Broadcast a message to all peers

Link to this section Functions

Link to this function connected_handlers() View Source
connected_handlers() :: List

Given a peer supervisor, return a list of all the handlers that are currently connected to another peer

Link to this function fetch_peers_from_registry(port) View Source
fetch_peers_from_registry(integer()) :: List
Link to this function gossip(type, message) View Source
gossip(String.t(), map()) :: none()

Broadcast a message to all peers

Link to this function initialize(comm_pid, port) View Source
initialize(pid(), integer()) :: none()