std::ostream for getipaddrs