Rudiments
include
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
threadmutex
Definition:
threadmutex.h:11
hostentry
Definition:
hostentry.h:11
Generated on Sat Mar 14 2020 21:50:17 for Rudiments by
1.8.15