Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
netdb.h
Go to the documentation of this file.
1 
4 #ifndef _TENOK_NETDB_H
5 #define _TENOK_NETDB_H
6 
7 #include <sys/socket.h>
8 
9 struct addrinfo {
10  int ai_flags;
11  int ai_family;
12  int ai_socktype;
13  int ai_protocol;
14  socklen_t ai_addrlen;
15  struct sockaddr *ai_addr;
16  char *ai_canonname;
17  struct addrinfo *ai_next;
18 };
19 
20 struct hostent {
21  char *h_name;
22  char **h_aliases;
23  int h_addrtype;
24  int h_length;
25  char **h_addr_list;
26 };
27 
28 #define AI_CANONNAME 0x0002
29 #define NI_NUMERICHOST 0x0001
30 #define NI_NUMERICSERV 0x0002
31 #define EAI_NONAME -2
32 
33 #endif
Definition: netdb.h:9
Definition: netdb.h:20
Definition: socket.h:32