tcp_listen.h

来自「linux下的tcp通信多线程示例,通过创建多线程来建立TCP联接.在嵌入式系统」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef		_TCP_LISTEN_H_#define		_TCP_LISTEN_H_#include	<sys/types.h>	/* basic system data types */#include	<sys/socket.h>	/* basic socket definitions */#include	<sys/time.h>	/* timeval{} for select() */#include	<time.h>		/* timespec{} for pselect() */#include	<netinet/in.h>	/* sockaddr_in{} and other Internet defns */#include	<arpa/inet.h>	/* inet(3) functions */#include	<errno.h>#include	<fcntl.h>		/* for nonblocking */#include	<netdb.h>#include	<signal.h>#include	<stdio.h>#include	<stdlib.h>#include	<string.h>#include	<sys/stat.h>	/* for S_xxx file mode constants */#include	<sys/uio.h>		/* for iovec{} and readv/writev */#include	<unistd.h>#include	<sys/wait.h># include	<sys/select.h>	/* for convenience */# include	<poll.h>		/* for convenience */# include	<strings.h>		/* for convenience */# include	<sys/ioctl.h># include	<pthread.h>//#include	"addrinfo.h"int Tcp_listen(const char *host, const char *serv, socklen_t *addrlenp);#endif

⌨️ 快捷键说明

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