+ /**
+ * Set the IP address and port.
+ *
+ * @param addr IP address in network byte order
+ * @param port IP port in host byte order
+ *
+ * @see sockaddr(uint32_t, uint16_t)
+ */
+ void set(uint32_t addr, uint16_t port) throw();
+
+ /**
+ * Set the IP address and port.
+ *
+ * @param addr String representation of the IP address
+ * @param port IP port in host byte order
+ *
+ * @see sockaddr(const std::string&, uint16_t)
+ */
+ void set(const std::string& addr, uint16_t port) throw();
+
+ /// Get the IP address as a string
+ std::string addr() const throw ();
+
+ /// Set the IP address (in network byte order)
+ void addr(uint32_t addr) throw ();
+
+ /// Set the IP address from a string
+ void addr(const std::string& addr) throw ();