12#ifndef OPENVPN_SERVER_PEERADDR_H
13#define OPENVPN_SERVER_PEERADDR_H
36 Json::Value
to_json(
bool convert_mapped_addresses =
false)
const
38 Json::Value jret(Json::objectValue);
42 jret[
"addr"] = Json::Value(v4addr.to_string());
48 jret[
"port"] = Json::Value(
port);
77 Json::Value
to_json(
bool convert_mapped_addresses =
false)
const
79 Json::Value jret(Json::objectValue);
80 jret[
"tcp"] = Json::Value(
tcp);
std::string to_string() const
std::string to_string_bracket_ipv6() const
IP::Addr to_v4_addr() const
bool is_mapped_address() const
Reference count base class for objects tracked by RCPtr. Allows copying and assignment.
std::string to_string(const T &t)
Convert a value to a string.
std::string to_string() const
Json::Value to_json(bool convert_mapped_addresses=false) const
Json::Value to_json(bool convert_mapped_addresses=false) const
std::string to_string() const