Module comm::node [] [src]

Structs

Node

A Node is a peer in the network. It represents another network participant such as ourself. It has an address, and a means to be sent messages. When we receive messages, they come from other nodes.

Enums

Status

Constants

FAILED_TO_RESPOND_THRESHOLD

The maximum number of queries sent without a response before a node is considered bad.

MINUTES_UNTIL_QUESTIONABLE

A node becomes questionable if it hasn't been heard from in this many minutes.

Traits

Serialize

Anything that needs to be serialized for transfer or storage.

Functions

deserialize

Deserialize a Node from a protobuf.