1#include <xrpld/app/main/Application.h>
2#include <xrpld/core/Config.h>
3#include <xrpld/overlay/Overlay.h>
4#include <xrpld/rpc/Context.h>
5#include <xrpld/rpc/detail/Handler.h>
7#include <xrpl/beast/net/IPEndpoint.h>
8#include <xrpl/json/json_value.h>
9#include <xrpl/protocol/ErrorCodes.h>
10#include <xrpl/protocol/RPCErr.h>
11#include <xrpl/protocol/SystemParameters.h>
12#include <xrpl/protocol/jss.h>
48 iPort = kDefaultPeerPort;
54 if (!isUnspecified(ip))
58 "attempting connection to IP:" + ipStr +
" port: " +
std::to_string(iPort));
static Endpoint fromString(std::string const &s)
bool isConvertibleTo(ValueType other) const
std::string asString() const
Returns the unquoted string value.
bool isMember(char const *key) const
Return true if the object has a member named key.
virtual Config & config()=0
virtual void connect(beast::IP::Endpoint const &address)=0
Establish a peer connection to the specified endpoint.
virtual Overlay & getOverlay()=0
@ Int
signed integer value
json::Value makeError(ErrorCodeI 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::ValueType::Object with a single entry.
json::Value missingFieldError(std::string const &name)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
json::Value doConnect(RPC::JsonContext &context)
json::Value rpcError(ErrorCodeI iError)