Elixium Core v0.2.9 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 gossip(type, message) View Source
gossip(string(), map()) :: none()

Broadcast a message to all peers

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