XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Libs
XEClib
includes
sys
netdb.h
Go to the documentation of this file.
1
32
#ifndef __NETDB_H__
33
#define __NETDB_H__
34
35
#include <stdint.h>
36
#include <
_xeneva.h
>
37
38
#ifdef __cplusplus
39
XE_EXTERN
{
40
#endif
41
42
43
#pragma pack(push,1)
44
__declspec
(align(2))
45
typedef struct _dns_ {
46
uint16_t
qid;
47
uint16_t
flags;
48
uint16_t
questions;
49
uint16_t
answers;
50
uint16_t
authorities;
51
uint16_t
additional;
52
uint8_t
data[];
53
}
DNSPacket
;
54
#pragma pack(pop)
55
56
struct
hostent
{
57
char
*
h_name
;
58
char
**
h_aliases
;
59
int
h_addrtype
;
60
int
h_length
;
61
char
**
h_addr_list
;
62
};
63
64
XE_LIB
hostent
*
gethostbyname
(
const
char
* name);
65
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
_xeneva.h
XE_LIB
#define XE_LIB
Definition
_xeneva.h:55
XE_EXTERN
#define XE_EXTERN
Definition
_xeneva.h:50
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
uint16_t
unsigned short int uint16_t
Definition
acefiex.h:162
gethostbyname
XE_LIB hostent * gethostbyname(const char *name)
Definition
xenet.cpp:99
__declspec
__declspec(align(2)) typedef struct _dns_
Definition
netdb.h:44
DNSPacket
DNSPacket
Definition
netdb.h:53
hostent
Definition
netdb.h:56
hostent::h_addrtype
int h_addrtype
Definition
netdb.h:59
hostent::h_name
char * h_name
Definition
netdb.h:57
hostent::h_addr_list
char ** h_addr_list
Definition
netdb.h:61
hostent::h_length
int h_length
Definition
netdb.h:60
hostent::h_aliases
char ** h_aliases
Definition
netdb.h:58
Generated by
1.9.8