diff --git a/ConnectAttempt_8cpp_source.html b/ConnectAttempt_8cpp_source.html
index e3a75963f5..ce56527f8b 100644
--- a/ConnectAttempt_8cpp_source.html
+++ b/ConnectAttempt_8cpp_source.html
@@ -554,7 +554,7 @@ $(function() {
PublicKey verifyHandshake(boost::beast::http::fields const &headers, ripple::uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote, Application &app)
Validate header fields necessary for upgrading the link to the peer protocol.
ConnectAttempt(Application &app, boost::asio::io_service &io_service, endpoint_type const &remote_endpoint, Resource::Consumer usage, shared_context const &context, std::uint32_t id, std::shared_ptr< PeerFinder::Slot > const &slot, beast::Journal journal, OverlayImpl &overlay)
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
static boost::asio::ip::tcp::endpoint parse_endpoint(std::string const &s, boost::system::error_code &ec)
static bool isPeerUpgrade(http_request_type const &request)
diff --git a/Handshake_8cpp_source.html b/Handshake_8cpp_source.html
index 3d33ea9db5..a01f5cc13e 100644
--- a/Handshake_8cpp_source.html
+++ b/Handshake_8cpp_source.html
@@ -358,154 +358,127 @@ $(function() {
-
-
- 306 auto const peerInstanceID = [&headers]() {
-
-
- 309 if (
auto const iter = headers.find(
"Instance-Cookie");
- 310 iter != headers.end())
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 311 auto const iter = headers.find(
"Session-Signature");
+
+ 313 if (iter == headers.end())
+
+
+
+
+
+
+
-
-
-
-
-
- 327 app.
signalStop(
"Remote server is using our node identity");
-
-
+
+
+
+ 325 if (
auto const iter = headers.find(
"Local-IP"); iter != headers.end())
+
+ 327 boost::system::error_code ec;
+ 328 auto const local_ip = boost::asio::ip::address::from_string(
+ 329 iter->value().to_string(), ec);
-
-
+
+
-
-
-
-
-
-
-
- 341 auto const iter = headers.find(
"Session-Signature");
-
- 343 if (iter == headers.end())
-
+
+
+ 336 "Incorrect Local-IP: " + remote.to_string() +
" instead of " +
+ 337 local_ip.to_string());
+
+
+ 340 if (
auto const iter = headers.find(
"Remote-IP"); iter != headers.end())
+
+ 342 boost::system::error_code ec;
+ 343 auto const remote_ip = boost::asio::ip::address::from_string(
+ 344 iter->value().to_string(), ec);
-
-
-
-
-
-
- 352 if (
auto const iter = headers.find(
"Local-IP"); iter != headers.end())
-
- 354 boost::system::error_code ec;
- 355 auto const local_ip = boost::asio::ip::address::from_string(
- 356 iter->value().to_string(), ec);
-
-
-
+
+
+
+
+
+
+
+
+ 354 if (remote_ip != public_ip)
+
+ 356 "Incorrect Remote-IP: " + public_ip.to_string() +
+ 357 " instead of " + remote_ip.to_string());
+
+
-
-
- 363 "Incorrect Local-IP: " + remote.to_string() +
" instead of " +
- 364 local_ip.to_string());
-
-
- 367 if (
auto const iter = headers.find(
"Remote-IP"); iter != headers.end())
-
- 369 boost::system::error_code ec;
- 370 auto const remote_ip = boost::asio::ip::address::from_string(
- 371 iter->value().to_string(), ec);
-
-
-
-
-
-
-
-
-
- 381 if (remote_ip != public_ip)
-
- 383 "Incorrect Remote-IP: " + public_ip.to_string() +
- 384 " instead of " + remote_ip.to_string());
-
-
-
-
+
+
+
+
+
+
+
+ 368 bool ledgerReplayEnabled,
+ 369 bool txReduceRelayEnabled,
+
+
+
+ 373 m.method(boost::beast::http::verb::get);
+
+
+
+
+ 378 m.insert(
"Connection",
"Upgrade");
+ 379 m.insert(
"Connect-As",
"Peer");
+ 380 m.insert(
"Crawl", crawlPublic ?
"public" :
"private");
+
+
+
+
+
+ 386 txReduceRelayEnabled,
+ 387 vpReduceRelayEnabled));
+
-
-
+
+
-
- 395 bool ledgerReplayEnabled,
- 396 bool txReduceRelayEnabled,
-
-
-
- 400 m.method(boost::beast::http::verb::get);
-
-
-
-
- 405 m.insert(
"Connection",
"Upgrade");
- 406 m.insert(
"Connect-As",
"Peer");
- 407 m.insert(
"Crawl", crawlPublic ?
"public" :
"private");
-
-
-
-
-
- 413 txReduceRelayEnabled,
- 414 vpReduceRelayEnabled));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 430 resp.result(boost::beast::http::status::switching_protocols);
- 431 resp.version(req.version());
- 432 resp.insert(
"Connection",
"Upgrade");
-
- 434 resp.insert(
"Connect-As",
"Peer");
-
- 436 resp.insert(
"Crawl", crawlPublic ?
"public" :
"private");
-
-
-
-
-
-
-
-
-
- 446 buildHandshake(resp, sharedValue, networkID, public_ip, remote_ip, app);
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 403 resp.result(boost::beast::http::status::switching_protocols);
+ 404 resp.version(req.version());
+ 405 resp.insert(
"Connection",
"Upgrade");
+
+ 407 resp.insert(
"Connect-As",
"Peer");
+
+ 409 resp.insert(
"Crawl", crawlPublic ?
"public" :
"private");
+
+
+
+
+
+
+
+
+
+ 419 buildHandshake(resp, sharedValue, networkID, public_ip, remote_ip, app);
+
+
+
+
+
static std::optional< base_uint< 512 > > hashLastMessage(SSL const *ssl, size_t(*get)(const SSL *, void *, size_t))
Hashes the latest finished message from an SSL stream.
@@ -522,7 +495,6 @@ $(function() {
static constexpr char FEATURE_LEDGER_REPLAY[]
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
-virtual void signalStop(std::string msg="")=0
std::optional< uint256 > makeSharedValue(stream_type &ssl, beast::Journal journal)
Computes a shared value based on the SSL connection state.
virtual TimeKeeper & timeKeeper()=0
static constexpr char FEATURE_VPRR[]
@@ -577,8 +549,8 @@ $(function() {
bool TX_REDUCE_RELAY_ENABLE
PublicKey verifyHandshake(boost::beast::http::fields const &headers, ripple::uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote, Application &app)
Validate header fields necessary for upgrading the link to the peer protocol.
std::string makeFeaturesResponseHeader(http_request_type const &headers, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled)
Make response header X-Protocol-Ctl value with supported features.
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
bool is_unspecified(Address const &addr)
Returns true if the address is unspecified.
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
typename NetClock ::time_point time_point
diff --git a/Handshake_8h_source.html b/Handshake_8h_source.html
index c91a10f641..5695a32fe2 100644
--- a/Handshake_8h_source.html
+++ b/Handshake_8h_source.html
@@ -258,8 +258,8 @@ $(function() {
PublicKey verifyHandshake(boost::beast::http::fields const &headers, ripple::uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote, Application &app)
Validate header fields necessary for upgrading the link to the peer protocol.
std::string makeFeaturesResponseHeader(http_request_type const &headers, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled)
Make response header X-Protocol-Ctl value with supported features.
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
boost::beast::http::response< boost::beast::http::dynamic_body > http_response_type
void buildHandshake(boost::beast::http::fields &h, ripple::uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote_ip, Application &app)
Insert fields headers necessary for upgrading the link to the peer protocol.
diff --git a/LedgerData__test_8cpp_source.html b/LedgerData__test_8cpp_source.html
index 2661ef270f..94cf7026b1 100644
--- a/LedgerData__test_8cpp_source.html
+++ b/LedgerData__test_8cpp_source.html
@@ -609,7 +609,7 @@ $(function() {
constexpr std::uint32_t tfUniversal
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
void testCurrentLedgerToLimits(bool asAdmin)
diff --git a/LedgerReplay__test_8cpp_source.html b/LedgerReplay__test_8cpp_source.html
index 20dc211a0c..ea004998c4 100644
--- a/LedgerReplay__test_8cpp_source.html
+++ b/LedgerReplay__test_8cpp_source.html
@@ -1819,11 +1819,11 @@ $(function() {
bool waitForLedgers(uint256 const &finishLedgerHash, int totalReplay)
void testSkipListTimeout()
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
TestPeerSet(LedgerReplayMsgHandler &me, LedgerReplayMsgHandler &other, PeerSetBehavior bhvr, bool enableLedgerReplay)
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
MagicInboundLedgers inboundLedgers
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
diff --git a/PeerImp_8cpp_source.html b/PeerImp_8cpp_source.html
index 19d7b918b7..0195bbca00 100644
--- a/PeerImp_8cpp_source.html
+++ b/PeerImp_8cpp_source.html
@@ -4107,7 +4107,7 @@ $(function() {
std::mutex shardInfoMutex_
Disposition charge(Charge const &fee)
Apply a load charge to the consumer.
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
@ sendQueueLogFreq
How often to log send queue size.
diff --git a/compression__test_8cpp_source.html b/compression__test_8cpp_source.html
index 7d4f49152f..8cec510d1d 100644
--- a/compression__test_8cpp_source.html
+++ b/compression__test_8cpp_source.html
@@ -713,8 +713,8 @@ $(function() {
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
diff --git a/namespaceripple.html b/namespaceripple.html
index 3158ca99be..3e739ef007 100644
--- a/namespaceripple.html
+++ b/namespaceripple.html
@@ -25727,7 +25727,7 @@ template<class Clock , class Duration , class Rep , class Period >
- Returns
- http request with empty body
-Definition at line 392 of file Handshake.cpp.
+Definition at line 365 of file Handshake.cpp.
@@ -25809,7 +25809,7 @@ template<class Clock , class Duration , class Rep , class Period >
- Returns
- http response
-Definition at line 419 of file Handshake.cpp.
+Definition at line 392 of file Handshake.cpp.
diff --git a/reduce__relay__test_8cpp_source.html b/reduce__relay__test_8cpp_source.html
index a86e2f5224..1b11781127 100644
--- a/reduce__relay__test_8cpp_source.html
+++ b/reduce__relay__test_8cpp_source.html
@@ -1840,9 +1840,9 @@ $(function() {
void unsquelch(PublicKey const &, Peer::id_t) const override
Unsquelch handler.
-auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
+auto makeRequest(bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) -> request_type
Make outbound http request.
-http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
+http_response_type makeResponse(bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion protocol, Application &app)
Make http response.
void for_links(std::vector< Peer::id_t > peers, LinkIterCB f)
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type