inetdefs.h
来自「Libnet is a cross-platform library aimed」· C头文件 代码 · 共 42 行
H
42 行
/* $Header: /cvsroot/libnet/libnet/lib/include/inetdefs.h,v 1.3 2001/08/12 16:55:30 gfoot Exp $ * * Platform-specific internet definitions * * For the most part, this means that Berkeley sockets emulates Winsock. */#ifndef libnet_included_inetdefs_h#define libnet_included_inetdefs_h#include "platdefs.h"/*---------------------------------------- Berkeley sockets includes (Unix) */#if defined __USE_REAL_SOCKS__ || defined __USE_REAL_BESOCKS__#include <netinet/in.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/time.h>#include <sys/ioctl.h>#include <unistd.h>#include <errno.h>#define SOCKET int#define INVALID_SOCKET ((SOCKET)-1)#define SOCKET_ERROR (-1)#define ioctlsocket ioctl#define closesocket close#endif/*---------------------------------------- Windows Winsock includes */#ifdef __USE_REAL_WSOCK_WIN__#include <winsock.h>#endif/*---------------------------------------- DOS Winsock includes */#ifdef __USE_REAL_WSOCK_DOS__#include "wsockdos.h"#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?