mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Add ProtocolStart and GracefulClose P2P protocol messages (#3839)
Clean up the peer-to-peer protocol start/close sequences by introducing START_PROTOCOL and GRACEFUL_CLOSE messages, which sync inbound/outbound peer send/receive. The GRACEFUL_CLOSE message differentiates application and link layer failures. * Introduce the `InboundHandoff` class to manage inbound peer instantiation and synchronize the send/receive protocol messages between peers. * Update `OverlayImpl` to utilize the `InboundHandoff` class to manage inbound handshakes. * Update `PeerImp` for improved handling of protocol messages. * Modify the `Message` class for better maintainability. * Introduce P2P protocol version `2.3`.
This commit is contained in:
committed by
GitHub
parent
5433e133d5
commit
8f89694fae
@@ -636,6 +636,7 @@ target_sources (rippled PRIVATE
|
||||
src/ripple/overlay/impl/Cluster.cpp
|
||||
src/ripple/overlay/impl/ConnectAttempt.cpp
|
||||
src/ripple/overlay/impl/Handshake.cpp
|
||||
src/ripple/overlay/impl/InboundHandoff.cpp
|
||||
src/ripple/overlay/impl/Message.cpp
|
||||
src/ripple/overlay/impl/OverlayImpl.cpp
|
||||
src/ripple/overlay/impl/PeerImp.cpp
|
||||
|
||||
Reference in New Issue
Block a user