| 16 | namespace winrt::Maple_App::implementation |
| 17 | { |
| 18 | Netif::Netif(const hstring& desc, addresses_t addresses) |
| 19 | : m_desc(desc), m_addresses(std::move(addresses)) |
| 20 | { |
| 21 | for (auto const& [af, a] : m_addresses) |
| 22 | { |
| 23 | if (af != AF_INET) |
| 24 | { |
| 25 | continue; |
| 26 | } |
| 27 | if (!m_addr.empty()) |
| 28 | { |
| 29 | m_addr = m_addr + L","; |
| 30 | } |
| 31 | m_addr = m_addr + a; |
| 32 | } |
| 33 | for (auto const& [af, a] : m_addresses) |
| 34 | { |
| 35 | if (af != AF_INET6) |
| 36 | { |
| 37 | continue; |
| 38 | } |
| 39 | if (!m_addr.empty()) |
| 40 | { |
| 41 | m_addr = m_addr + L","; |
| 42 | } |
| 43 | m_addr = m_addr + a; |
| 44 | } |
| 45 | } |
| 46 | hstring Netif::Desc() |
| 47 | { |
| 48 | return m_desc; |
nothing calls this directly
no outgoing calls
no test coverage detected