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

📄 common.h

📁 附件为linux下的socket编程包
💻 H
字号:
/* common.h * * Source common to all modules: */#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <fcntl.h>#include <time.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <sys/un.h>#include <sys/uio.h>#ifndef TRUE#define TRUE    1#define FALSE   0#endifextern void bail(const char *on_what);extern int recv_fd(int s);extern int reqport(int port);extern int send_fd(    int s,int fd,    void *addr,socklen_t alen);extern int recv_cred(    int s,struct ucred *credp,    void *buf,unsigned bufsiz,    void *addr,socklen_t *alen);

⌨️ 快捷键说明

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