Expand description
Initial Handshakes 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_addras failed usingaddress_book_updater. - handle_
heartbeat_ ๐shutdown - Mark
connected_addras shut down usingaddress_book_updater. - heartbeat_
timeout ๐ - Wrap
futin 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
msgforconnected_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.