Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Ping.hpp
1#pragma once
2
3#include "rpc/common/Types.hpp"
4
5namespace rpc {
6
14public:
23
30 static Result
31 process([[maybe_unused]] Context const& ctx)
32 {
33 return Output{};
34 }
35};
36
37} // namespace rpc
The ping command returns an acknowledgement, so that clients can test the connection status and laten...
Definition Ping.hpp:13
VoidOutput Output
The command has no output data.
Definition Ping.hpp:18
HandlerReturnType< Output > Result
The result type of the command: either the Output or an error status.
Definition Ping.hpp:22
static Result process(Context const &ctx)
Process the Ping command.
Definition Ping.hpp:31
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:17
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:63
Context of an RPC call.
Definition Types.hpp:102
An empty type used as Output for handlers than don't actually produce output.
Definition Types.hpp:97