20#include <xrpld/app/main/Application.h>
21#include <xrpld/core/Config.h>
22#include <xrpld/overlay/Overlay.h>
23#include <xrpld/rpc/Context.h>
24#include <xrpld/rpc/detail/Handler.h>
25#include <xrpl/protocol/ErrorCodes.h>
26#include <xrpl/protocol/RPCErr.h>
27#include <xrpl/protocol/SystemParameters.h>
28#include <xrpl/protocol/jss.h>
59 iPort = DEFAULT_PEER_PORT;
64 if (!is_unspecified(ip))
68 "attempting connection to IP:" + ip_str +
std::string asString() const
Returns the unquoted string value.
bool isMember(const char *key) const
Return true if the object has a member named key.
bool isConvertibleTo(ValueType other) const
static Endpoint from_string(std::string const &s)
virtual Config & config()=0
virtual Overlay & overlay()=0
virtual void connect(beast::IP::Endpoint const &address)=0
Establish a peer connection to the specified endpoint.
@ intValue
signed integer value
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Json::Value makeObjectValue(Value const &value, Json::StaticString const &field=jss::message)
Return a Json::objectValue with a single entry.
Json::Value missing_field_error(std::string const &name)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Json::Value rpcError(int iError)
Json::Value doConnect(RPC::JsonContext &context)