Rudiments
hostentry.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_HOSTENTRY_H
5 #define RUDIMENTS_HOSTENTRY_H
6 
7 #include <rudiments/private/hostentryincludes.h>
8 
11 class RUDIMENTS_DLLSPEC hostentry {
12  public:
13 
16 
19  hostentry(const hostentry &h);
20 
24 
27 
29  bool initialize(const char *hostname);
30 
35  bool initialize(const char *address,
36  int32_t len, int32_t type);
37 
39  const char *getName() const;
40 
43  const char * const *getAliasList() const;
44 
46  int32_t getAddressType() const;
47 
49  int32_t getAddressLength() const;
50 
53  const char * const *getAddressList() const;
54 
59  char *getAddressString(int32_t index) const;
60 
69  static char *getAddressString(const char *hostname);
70 
83  static char *getName(const char *address,
84  int32_t len, int32_t type);
85 
98  static char *getAddressString(const char *address,
99  int32_t len, int32_t type);
100 
103  static bool needsMutex();
104 
108  static void setMutex(threadmutex *mtx);
109 
110  #include <rudiments/private/hostentry.h>
111 };
112 
113 #endif
Definition: hostentry.h:11
static char * getName(const char *address, int32_t len, int32_t type)
hostentry(const hostentry &h)
static void setMutex(threadmutex *mtx)
const char * getName() const
int32_t getAddressType() const
static char * getAddressString(const char *hostname)
int32_t getAddressLength() const
bool initialize(const char *hostname)
static char * getAddressString(const char *address, int32_t len, int32_t type)
bool initialize(const char *address, int32_t len, int32_t type)
const char *const * getAliasList() const
hostentry & operator=(const hostentry &h)
static bool needsMutex()
char * getAddressString(int32_t index) const
const char *const * getAddressList() const
Definition: threadmutex.h:11