⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netdb.h

📁 最新rtlinux内核源码
💻 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 + -