4 #ifndef RUDIMENTS_HOSTENTRY_H
5 #define RUDIMENTS_HOSTENTRY_H
7 #include <rudiments/private/hostentryincludes.h>
9 class hostentryprivate;
31 bool initialize(
const char *hostname);
37 bool initialize(
const char *address,
38 int32_t len, int32_t type);
41 const char *getName()
const;
45 const char *
const *getAliasList()
const;
48 int32_t getAddressType()
const;
51 int32_t getAddressLength()
const;
55 const char *
const *getAddressList()
const;
61 char *getAddressString(int32_t index)
const;
71 static char *getAddressString(
const char *hostname);
85 static char *getName(
const char *address,
86 int32_t len, int32_t type);
100 static char *getAddressString(
const char *address,
101 int32_t len, int32_t type);
105 static bool needsMutex();
112 #include <rudiments/private/hostentry.h>