SimpleLink CC3120/CC3220 Host Driver  Version 2.0.1.15
Simplifies the implementation of Internet connectivity
netdb.h
1 /*
2  * Copyright (C) 2016 Texas Instruments Incorporated
3  *
4  * All rights reserved. Property of Texas Instruments Incorporated.
5  * Restricted rights to use, duplicate or disclose this code are
6  * granted through contract.
7  *
8  * The program may not be used without the written permission of
9  * Texas Instruments Incorporated or against the terms and conditions
10  * stipulated in the agreement under which this program has been supplied,
11  * and under no circumstances can it be used with non-TI connectivity device.
12  *
13  */
14 
15 
16 /*****************************************************************************/
17 /* Include files */
18 /*****************************************************************************/
19 
20 #ifndef __NETDB_H__
21 #define __NETDB_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define IPv4_ADDR_LEN (4)
28 #define IPv6_ADDR_LEN (16)
29 
30 typedef struct hostent
31 {
32  char *h_name; /* Host name */
33  char **h_aliases; /* alias list */
34  int h_addrtype; /* host address type */
35  int h_length; /* length of address */
36  char **h_addr_list; /* list of addresses */
37 #define h_addr h_addr_list[0] /* Address, for backward compatibility. */
38 }hostent_t;
39 
91 struct hostent* gethostbyname(const char *name);
92 
99 #ifdef __cplusplus
100 }
101 #endif /* __cplusplus */
102 #endif /* __NETDB_ */
Definition: netdb.h:30
struct hostent * gethostbyname(const char *name)
Get host IP by name Obtain the IP Address of machine on network, by machine name. ...
Definition: socket.c:145