Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = ":9669"
DefaultPort is the default port when not set during runtime
Variables ¶
This section is empty.
Functions ¶
func IsListedNode ¶
IsListedNode checks if the node is in the list
func OpenConnection ¶
OpenConnection joins a bootstrap peer by IPAddress (includes PORT)
Types ¶
type Node ¶
Node is a peer node
func ConnectToNode ¶
ConnectToNode initiates a connection with a remote node
func (*Node) GetIPAddress ¶
GetIPAddress returns the IP address of the node pointing on its default port
func (*Node) ProcessMessages ¶
func (node *Node) ProcessMessages()
ProcessMessages processes all incoming messages
Click to show internal directories.
Click to hide internal directories.