00001 #ifndef CLASSLIB_HOST_INFO_H
00002 # define CLASSLIB_HOST_INFO_H
00003
00004
00005
00006 # include "classlib/sysapi/system.h"
00007 # include <string>
00008
00009 namespace lat {
00010
00011
00012
00013
00014
00015
00016
00018 class HostInfo
00019 {
00020 public:
00021 static std::string name (void);
00022 static std::string dnsname (void);
00023 static std::string dnsdomain (void);
00024 static std::string fqdn (void);
00025
00026
00027
00028 private:
00029 static bool isfqdn (const char *name);
00030 };
00031
00032
00033
00034 }
00035 #endif // CLASSLIB_HOST_INFO_H