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