We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a53c4 commit 6714c04Copy full SHA for 6714c04
libctru/include/netdb.h
@@ -9,14 +9,13 @@
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
- char *h_addr;
+ char *h_name; /* official name of host */
+ char **h_aliases; /* alias list */
+ uint16_t h_addrtype; /* host address type */
+ uint16_t h_length; /* length of address */
+ char **h_addr_list; /* list of addresses from name server */
18
};
19
-
+#define h_addr h_addr_list[0] /* for backward compatibility */
20
21
#define AI_PASSIVE 0x01
22
#define AI_CANONNAME 0x02
0 commit comments