Rudiments: /home/dmuse/src/rudiments/include/rudiments/hostentry.h Source File

Rudiments

- Main Page
- Classes

hostentry.h
1 // Copyright (c) 2002 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
9 class hostentryprivate;
10
13 class RUDIMENTS_DLLSPEC hostentry {
14 public:
15
17 hostentry();
18
21 hostentry(const hostentry &h);
22
25 hostentry &operator=(const hostentry &h);
26
28 ~hostentry();
29
31 bool initialize(const char *hostname);
32
37 bool initialize(const char *address,
38 int32_t len, int32_t type);
39
41 const char *getName() const;
42
45 const char * const *getAliasList() const;
46
48 int32_t getAddressType() const;
49
51 int32_t getAddressLength() const;
52
55 const char * const *getAddressList() const;
56
61 char *getAddressString(int32_t index) const;
62
71 static char *getAddressString(const char *hostname);
72
85 static char *getName(const char *address,
86 int32_t len, int32_t type);
87
100 static char *getAddressString(const char *address,
101 int32_t len, int32_t type);
102
105 static bool needsMutex();
106
110 static void setMutex(threadmutex *mtx);
111
112 #include <rudiments/private/hostentry.h>
113 };
114
115 #endif
threadmutex
Definition: threadmutex.h:13
hostentry
Definition: hostentry.h:13