My Project
 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;
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
Definition: netdb.h:11
char ** h_addr_list
Definition: netdb.h:16
char * h_name
Definition: netdb.h:12
int h_length
Definition: netdb.h:15
char ** h_aliases
Definition: netdb.h:13
int h_addrtype
Definition: netdb.h:14
struct hostent * gethostbyname(const char *name)
int h_errno