Interface to get ip addresses of local network interfaces
File | common/interface/network.h |
Classes |
INetwork LocalAddr LocalAddresses |
class INetwork {
public:
static LocalAddresses * GetLocalAddresses()
};
class LocalAddr {
public:
bool iPv6;
char * addr;
LocalAddr(char * addr, bool iPv6) {
this->addr = addr;
this->iPv6 = iPv6;
};
~LocalAddr() { if(addr) free(addr); };
};
class LocalAddresses {
public:
istd::list localAddresses;
~LocalAddresses() {
while(this->localAddresses.front()) {
delete this->localAddresses.front();
}
}
};