42 #ifndef _DWMIPV6ADDRESS_HH_ 43 #define _DWMIPV6ADDRESS_HH_ 47 #include <netinet/in.h> 76 Ipv6Address & operator = (
const std::string & addr);
86 operator std::string ()
const;
91 operator struct in6_addr () const;
126 inline bool IsV6()
const 136 return (
const uint8_t *)&_addr;
148 std::istream &
Read(std::istream & is);
153 std::ostream &
Write(std::ostream & os)
const;
159 ssize_t
Read(
int fd);
165 ssize_t
Write(
int fd)
const;
170 size_t Read(FILE * f);
175 size_t Write(FILE * f)
const;
181 int Read(gzFile gzf);
187 int Write(gzFile gzf)
const;
199 int BZWrite(BZFILE *bzf)
const;
202 struct in6_addr _addr;
207 #endif // _DWMIPV6ADDRESS_HH_ This class encapsulates an IPv6 address.
Definition: DwmIpv6Address.hh:59
std::istream & Read(std::istream &is)
Reads from an istream. Returns the istream.
Dwm::IpAddress class definition.
Ipv6Address()
Constructor. Sets address to 0::
bool operator>(const Ipv6Address &addr) const
Greater-than operator.
Definition: DwmBZ2IO.hh:67
std::ostream & Write(std::ostream &os) const
Writes to an ostream. Returns the ostream.
int BZWrite(BZFILE *bzf) const
Writes to a BZFILE pointer.
bool operator==(const Ipv6Address &addr) const
Equal-to operator.
This class encapsulates an IP address.
Definition: DwmIpAddress.hh:63
const uint8_t * RawPointer() const
Returns a pointer to the memory containing the address.
Definition: DwmIpv6Address.hh:134
Ipv6Address operator&(const Ipv6Address &netmask) const
Mask operator.
Ipv6Address & operator&=(const Ipv6Address &netmask)
Mask operator.
int BZRead(BZFILE *bzf)
Reads from a BZFILE pointer.
bool operator<(const Ipv6Address &addr) const
Less-than operator.
uint32_t StreamedLength() const
Returns the number of bytes that would be written if we called one of the Write() members...