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

📄 tm_blunk_socket.h

📁 用于嵌入式系统的TCP/IP协议栈
💻 H
字号:
/*  * tm_blunk_socket.h - Application interface for Blunk TargetTCP socket API * */#if !defined(_TM_BLUNK_SOCKET_H)#define _TM_BLUNK_SOCKET_H#if defined(BLUNK_TCPIP)#if SC_PNA || defined(FUSION_TCPIP)#error BLUNK_TCPIP is defined. Cannot also have SC_PNA or FUSION_TCPIP.#endif#include "tmNxTypes.h"#include <targetos.h>   /* type definitions */#include <sockets.h>    /* TargetTCP application include file */#include <tcp_ip.h>     /* TargetTCP driver include file */#define IPPROTO_IP          0           /* dummy for IP */#define IP_MULTICAST_TTL    3           /* set/get IP multicast timetolive  */ struct	hostent {	char	*h_name;	/* official name of host */	char	**h_aliases;	/* alias list */	int	h_addrtype;	/* host address type */	int	h_length;	/* length of address */	char	**h_addr_list;	/* list of addresses from name server */#define	h_addr	h_addr_list[0]	/* address, for backward compatiblity */};#if defined(__cplusplus)extern "C"{#endifchar *inet_ntoa(struct in_addr in); struct hostent	*gethostbyname (char *);#if defined(__cplusplus)}#endif#endif /* defined(BLUNK_TCPIP) */#endif /* !defined(_TM_BLUNK_SOCKET_H) */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -