group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
LocalAddress.cpp File Reference

Platform helpers for selecting a displayable local LAN IPv4 address. More...

#include "LocalAddress.hpp"
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <netinet/in.h>
Include dependency graph for LocalAddress.cpp:

Namespaces

namespace  local_address

Functions

std::string local_address::firstLanIPv4 ()
 Return the first active non-loopback LAN IPv4 address, or 127.0.0.1 if none is found.

Detailed Description

Platform helpers for selecting a displayable local LAN IPv4 address.