您的位置:首页 > 运维架构 > Linux

linux下socket编写常用头文件

2017-06-04 12:40 435 查看
#include <sys/socket.h> //connect,send,recv,setsockopt等

#include <sys/types.h>

#include <netinet/in.h> // sockaddr_in, "man 7 ip" ,htons

#include <poll.h> //poll,pollfd

#include <arpa/inet.h> //inet_addr,inet_aton

#include <unistd.h> //read,write

#include <netdb.h> //gethostbyname

#include <error.h> //perror

#include <stdio.h>

#include <errno.h> //errno

#include <string.h> // memset

#include <string>

#include <iostream>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: