hostentry.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_HOSTENTRY_H
#define RUDIMENTS_HOSTENTRY_H
#include <rudiments/private/hostentryincludes.h>
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
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