xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
rpc
handlers
admin
server_control
Stop.cpp
1
#include <xrpld/app/main/Application.h>
2
#include <xrpld/rpc/detail/Handler.h>
3
4
#include <xrpl/json/json_value.h>
5
#include <xrpl/protocol/SystemParameters.h>
6
7
namespace
xrpl
{
8
9
namespace
rpc
{
10
struct
JsonContext
;
11
}
// namespace rpc
12
13
json::Value
14
doStop
(
rpc::JsonContext
& context)
15
{
16
context.
app
.
signalStop
(
"RPC"
);
17
return
rpc::makeObjectValue
(
systemName
() +
" server stopping"
);
18
}
19
20
}
// namespace xrpl
xrpl::Application::signalStop
virtual void signalStop(std::string const &msg)=0
xrpl::rpc
API version numbers used in later API versions.
Definition
ApiVersion.h:36
xrpl::rpc::makeObjectValue
json::Value makeObjectValue(Value const &value, json::StaticString const &field=jss::message)
Return a json::ValueType::Object with a single entry.
Definition
Handler.h:120
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::doStop
json::Value doStop(rpc::JsonContext &context)
Definition
Stop.cpp:14
xrpl::systemName
static std::string const & systemName()
Definition
SystemParameters.h:18
xrpl::rpc::Context::app
Application & app
Definition
Context.h:29
xrpl::rpc::JsonContext
Definition
Context.h:41
Generated by
1.17.0