Expand description
Initial Handshake
s with Zebra peers over a PeerTransport
.
Structs§
- Builder
- A builder for
Handshake
. - Connection
Info - The metadata for a peer connection.
- Handshake
- A [
Service
] that handshakes with a remote peer and constructs a client/server pair. - Handshake
Request - A handshake request. Contains the information needed to handshake with the peer.
Enums§
- Connected
Addr - The peer address that we are handshaking with.
Functions§
- get_
unspecified_ ipv4_ addr - Get an unspecified IPv4 address for
network
- handle_
heartbeat_ 🔒error - If
result.is_err()
, markconnected_addr
as failed usingaddress_book_updater
. - handle_
heartbeat_ 🔒shutdown - Mark
connected_addr
as shut down usingaddress_book_updater
. - heartbeat_
timeout 🔒 - Wrap
fut
in a timeout, handing any inner or outer errors usinghandle_heartbeat_error
. - negotiate_
version - Negotiate the Zcash network protocol version with the remote peer at
connected_addr
, using the connectionpeer_conn
. - register_
inventory_ 🔒status - Register any advertised or missing inventory in
msg
forconnected_addr
. - send_
one_ 🔒heartbeat - Send one heartbeat using
server_tx
. - send_
periodic_ 🔒heartbeats_ run_ loop - Send periodical heartbeats to
server_tx
, and update the peer status throughheartbeat_ts_collector
. - send_
periodic_ 🔒heartbeats_ with_ shutdown_ handle - Send periodical heartbeats to
server_tx
, and update the peer status throughheartbeat_ts_collector
.