// Copyright 2005, The Tanoshi development team // Assigned to public domain, Use as you wish withou restriction. #include int main() { Tanoshi::HostAddress test("192.168.0.5"); Tanoshi::HostAddress test2("192.168.0.6"); printf("%d\n", test.toIPv4Address()); printf("%s\n", test.toString().c_str()); if(test == test2) printf("equal\n"); else printf("not equal\n"); return 0; }