`IPVAddressV(46)::fromInverseArpaName` static methods
[folly.git] / folly / IPAddressV6.h
index a1d0c7cbd3a9cd20d1e5cca951dccd64119fc939..21e892a42aac4f986c2c4a0d89585cb0e4b1431e 100644 (file)
@@ -101,6 +101,13 @@ class IPAddressV6 {
     return addr;
   }
 
+  /**
+   * Create a new IPAddress instance from the ip6.arpa representation.
+   * @throws IPAddressFormatException if the input is not a valid ip6.arpa
+   * representation
+   */
+  static IPAddressV6 fromInverseArpaName(const std::string& arpaname);
+
   /**
    * Returns the address as a Range.
    */
@@ -274,6 +281,8 @@ class IPAddressV6 {
   // @see IPAddress#toFullyQualified
   std::string toFullyQualified() const;
 
+  std::string toInverseArpaName() const;
+
   // @see IPAddress#str
   std::string str() const;