Expand description
Defines how to decode generic messages as well as implementing the
common network messages that are sent between nodes as described
by the protocol submodule.
Implements a type called Packet which is the base message type.
Packets are converted into messages and passed to an event loop.
Structs§
- Addrs
Message - Sends address information to inbound connection.
- GetAddrs
Message - Requests address of outbound connection.
- Ping
Message - Outbound keepalive message.
- Pong
Message - Inbound keepalive message.
- Serialized
Message - Generic serialized message template.
- Verack
Message - Sends version information to inbound connection.
Response to
VersionMessage. - Version
Message - Requests version information of outbound connection.
Constants§
- ADDRS_
MAX_ BYTES - Addrs message fields size:
- ADDRS_
METERING_ CONFIGURATION - GET_
ADDRS_ MAX_ BYTES - GetAddrs message fields size:
- GET_
ADDRS_ METERING_ CONFIGURATION - MAX_
COMMAND_ LENGTH - Maximum command (message name) length in bytes.
- PING_
PONG_ MAX_ BYTES - Ping-Pong messages fields size:
- PING_
PONG_ METERING_ CONFIGURATION - For each message configs a threshold was calculated by taking the maximum number of messages in a 10 seconds window and multiply it by 2 not to be strict.
- VERACK_
MAX_ BYTES - Verack message fields size:
- VERACK_
METERING_ CONFIGURATION - VERSION_
MAX_ BYTES - Version message fields size:
- VERSION_
METERING_ CONFIGURATION
Traits§
- Message
- Generic message template.