/** * @file ip.cc * @brief A IP class, that handles all about time. * * code taken from audiere. */ #include "ip.h" IP::IP() {} IP::IP(int ip) { this->_ip = ip; } IP::IP(const std::string& ip) { this->_ip = IP::stringToIP(ip); } int IP::stringToIP(const std::string& ip) { } const std::string& IP::ipToString(int ip) { std::string ipaddr; number = SDLNet_Read32 (&addr.host); printf ("Host-Reihenfolge: %d.%d.%d.%d\n", (number & 0xFF000000)>>24, (number & 0x00FF0000)>>16, (number & 0x0000FF00)>>8, (number & 0x000000FF)); }