INet4Address address() const; ///< Return address
unsigned port() const; ///< Return port number
- bool boolean_test() const; ///< \c true, if address is empty (i.e. 0.0.0.0:0)
+ bool boolean_test() const; ///< \c true, if address is not empty (i.e. 0.0.0.0:0)
void clear(); ///< Clear address/port to 0.0.0.0:0
struct SyntaxException : public std::exception
{ virtual char const * what() const throw()
- { return "Invalid IpV4 socket address syntax"; } };
+ { return "Invalid IPv4 socket address syntax"; } };
private:
struct ::sockaddr_in addr_;
address cannot be resolved.
\param[in] addr Address to parse
\param[in] resolve If this is
- INet6Address::ResolveINet4, support IpV4
+ INet6Address::ResolveINet4, support IPv4
addresses. See INet6Address. */
INet6SocketAddress(INet6Address const & addr, unsigned port);
///< Initialize from address and port
struct SyntaxException : public std::exception
{ virtual char const * what() const throw()
- { return "Invalid IpV6 socket address syntax"; } };
+ { return "Invalid IPv6 socket address syntax"; } };
protected: