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