hostentry.h
// Copyright (c) 2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_HOSTENTRY_H
#define RUDIMENTS_HOSTENTRY_H
#include <rudiments/private/hostentryincludes.h>
class hostentryprivate;
class RUDIMENTS_DLLSPEC hostentry {
public:
hostentry();
hostentry(const hostentry &h);
hostentry &operator=(const hostentry &h);
~hostentry();
bool initialize(const char *hostname);
bool initialize(const char *address,
int32_t len, int32_t type);
const char *getName() const;
const char * const *getAliasList() const;
int32_t getAddressType() const;
int32_t getAddressLength() const;
const char * const *getAddressList() const;
char *getAddressString(int32_t index) const;
static char *getAddressString(const char *hostname);
static char *getName(const char *address,
int32_t len, int32_t type);
static char *getAddressString(const char *address,
int32_t len, int32_t type);
static bool needsMutex();
static void setMutex(threadmutex *mtx);
#include <rudiments/private/hostentry.h>
};
#endif