4#include <cosmos/error/RuntimeError.hxx>
5#include <cosmos/net/InterfaceAddress.hxx>
26 m_pos = m_pos->ifa_next;
28 cosmos_throw (
RuntimeError(
"Attempt to increment InterfaceAddressIterator past the end"));
35 cosmos_throw (
RuntimeError(
"Attempt to dereference invalid InterfaceAddressIterator"));
42 return m_pos == other.m_pos;
46 return !(*
this == other);
51 struct ifaddrs *m_pos =
nullptr;
Iterator helper type for InterfaceAddressList.
Access to the list of local network interface addresses.
A single network interface address.
Exception type for generic runtime errors.