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
15 hostentry();
16
19 hostentry(const hostentry &h);
20
23 hostentry &operator=(const hostentry &h);
24
26 ~hostentry();
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
hostentry
Definition: hostentry.h:11
hostentry::getName
static char * getName(const char *address, int32_t len, int32_t type)
hostentry::hostentry
hostentry(const hostentry &h)
hostentry::hostentry
hostentry()
hostentry::~hostentry
~hostentry()
hostentry::setMutex
static void setMutex(threadmutex *mtx)
hostentry::getName
const char * getName() const
hostentry::getAddressType
int32_t getAddressType() const
hostentry::getAddressString
static char * getAddressString(const char *hostname)
hostentry::getAddressLength
int32_t getAddressLength() const
hostentry::initialize
bool initialize(const char *hostname)
hostentry::getAddressString
static char * getAddressString(const char *address, int32_t len, int32_t type)
hostentry::initialize
bool initialize(const char *address, int32_t len, int32_t type)
hostentry::getAliasList
const char *const * getAliasList() const
hostentry::operator=
hostentry & operator=(const hostentry &h)
hostentry::needsMutex
static bool needsMutex()
hostentry::getAddressString
char * getAddressString(int32_t index) const
hostentry::getAddressList
const char *const * getAddressList() const
threadmutex
Definition: threadmutex.h:11