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
11class RUDIMENTS_DLLSPEC hostentry : public object {
12 public:
13
16
19
21 bool open(const char *hostname);
22
27 bool open(const char *address, int32_t len, int32_t type);
28
30 const char *getName();
31
34 const char * const *getAliasList();
35
37 int32_t getAddressType();
38
41
44 const char * const *getAddressList();
45
50 char *getAddressString(int32_t index);
51
60 static char *getAddressString(const char *hostname);
61
74 static char *getName(const char *address,
75 int32_t len, int32_t type);
76
89 static char *getAddressString(const char *address,
90 int32_t len, int32_t type);
91
94 static bool getNeedsMutex();
95
99 static void setMutex(threadmutex *mtx);
100
101 #include <rudiments/private/hostentry.h>
102};
103
104#endif
Definition hostentry.h:11
const char * getName()
bool open(const char *address, int32_t len, int32_t type)
static void setMutex(threadmutex *mtx)
static bool getNeedsMutex()
static char * getAddressString(const char *address, int32_t len, int32_t type)
bool open(const char *hostname)
int32_t getAddressLength()
int32_t getAddressType()
static char * getAddressString(const char *hostname)
const char *const * getAddressList()
const char *const * getAliasList()
char * getAddressString(int32_t index)
static char * getName(const char *address, int32_t len, int32_t type)
Definition object.h:10
Definition threadmutex.h:11