Instrument Neutral Distributed Interface INDI 2.2.5
NetIF.hpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <arpa/inet.h>
#include <ifaddrs.h>

Go to the source code of this file.

Namespaces

namespace  gmlc
namespace  gmlc::netif

Typedefs

using gmlc::netif::IF_ADDRS = struct ifaddrs*
using gmlc::netif::IF_ADDRS_UNICAST = struct ifaddrs*

Functions

std::string gmlc::netif::addressToString (struct sockaddr *addr, int sa_len)
void gmlc::netif::freeAddresses (IF_ADDRS addrs)
auto gmlc::netif::getAddresses (int family, IF_ADDRS *addrs)
auto gmlc::netif::getSockAddr (IF_ADDRS_UNICAST addr)
int gmlc::netif::getSockAddrLen (IF_ADDRS_UNICAST addr)
IF_ADDRS_UNICAST gmlc::netif::getNextAddress (int family, IF_ADDRS_UNICAST addrs)
std::vector< std::string > gmlc::netif::getInterfaceAddresses (int family)
std::vector< std::string > gmlc::netif::getInterfaceAddressesV4 ()
std::vector< std::string > gmlc::netif::getInterfaceAddressesV6 ()
std::vector< std::string > gmlc::netif::getInterfaceAddressesAll ()