?? netdb.h
字號:
/*******************************************************************************//* This file has been modified by Sergio Perez Alca駃z <serpeal@upvnet.upv.es> *//* Departamento de Inform醫ica de Sistemas y Computadores *//* Universidad Polit閏nica de Valencia *//* Valencia (Spain) *//* Date: April 2003 *//*******************************************************************************/#include "lwip/ip_addr.h"#ifndef _NETDB_H#define _NETDB_H/* Description of data base entry for a single service. */struct protoent { char *p_name; /* Official protocol name. */ char **p_aliases; /* Alias list. */ int p_proto; /* Protocol number. */};struct protoent *getprotobyname (const char *name);struct protoent *getprotobynumber (int proto);struct servent { char *s_name; char **s_aliases; int s_port; char *s_proto;};#define HOST_NOT_FOUND ENSRNXDOMAIN#define NO_ADDRESS ENSRNODATA#define NO_DATA ENSRNODATA#define TRY_AGAIN ENSRTIMEOUT#define h_addr h_addr_list[0]struct hostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char **h_addr_list;};extern int h_errno;struct hostent *gethostbyname (const char *name);struct hostent *gethostbyaddr (const char *addr, int len, int type);#if 0#define herror perror#define h_errno errno#define hstrerror strerror#endifvoid setnameservers (const struct in_addr *ns1, const struct in_addr *ns2);void getnameservers (struct in_addr *ns1, struct in_addr *ns2);#endif /* _NETDB_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -