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
:
15
using
Output =
VoidOutput
;
16
using
Result =
HandlerReturnType<Output>
;
17
24
static
Result
25
process
([[maybe_unused]]
Context
const
& ctx)
26
{
27
return
Output{};
28
}
29
};
30
31
}
// 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::process
static Result process(Context const &ctx)
Process the Ping command.
Definition
Ping.hpp:25
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:61
rpc::Context
Context of an RPC call.
Definition
Types.hpp:98
rpc::VoidOutput
An empty type used as Output for handlers than don't actually produce output.
Definition
Types.hpp:93
src
rpc
handlers
Ping.hpp
Generated by
1.17.0