`IPVAddressV(46)::fromInverseArpaName` static methods
[folly.git] / folly / IPAddressV4.h
index 6603828a93b8e9bc44c5679946658e2fca7b42ff..094969461934088b3ebad26bcf326d0e9a41fc8e 100644 (file)
@@ -79,6 +79,13 @@ class IPAddressV4 {
     return ByteRange((const unsigned char *) &addr_.inAddr_.s_addr, 4);
   }
 
+  /**
+   * Create a new IPAddress instance from the in-addr.arpa representation.
+   * @throws IPAddressFormatException if the input is not a valid in-addr.arpa
+   * representation
+   */
+  static IPAddressV4 fromInverseArpaName(const std::string& arpaname);
+
   /**
    * Convert a IPv4 address string to a long in network byte order.
    * @param [in] ip the address to convert