My Project
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
netdb.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
netinet/in.h
>
4
5
#define HOST_NOT_FOUND 1
6
#define NO_DATA 2
7
#define NO_ADDRESS NO_DATA
8
#define NO_RECOVERY 3
9
#define TRY_AGAIN 4
10
11
struct
hostent
{
12
char
*
h_name
;
13
char
**
h_aliases
;
14
int
h_addrtype
;
15
int
h_length
;
16
char
**
h_addr_list
;
17
};
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
extern
int
h_errno
;
24
struct
hostent
*
gethostbyname
(
const
char
*name);
25
26
#ifdef __cplusplus
27
}
28
#endif
hostent
Definition:
netdb.h:11
in.h
hostent::h_addr_list
char ** h_addr_list
Definition:
netdb.h:16
hostent::h_name
char * h_name
Definition:
netdb.h:12
hostent::h_length
int h_length
Definition:
netdb.h:15
hostent::h_aliases
char ** h_aliases
Definition:
netdb.h:13
hostent::h_addrtype
int h_addrtype
Definition:
netdb.h:14
gethostbyname
struct hostent * gethostbyname(const char *name)
Definition:
soc_gethostbyname.c:11
h_errno
int h_errno
Definition:
soc_gethostbyname.c:9
include
netdb.h
Generated on Mon Nov 24 2014 23:37:58 for My Project by
1.8.8