网络编程
文章平均质量分 66
Shijia Yin
这个作者很懒,什么都没留下…
展开
-
网络编程之select-poll-epoll使用模板
select#include <stdio.h>#include <stdlib.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <sys/time.h>#include <netinet/in.h>#include <errno.h>#define SERVER_PORT 12345#define TRUE 1原创 2022-05-03 16:29:12 · 398 阅读 · 0 评论 -
一文掌握Socket编程
文章目录API概览更多细节socket()bind()listen()accept()connect()select()getsockname() 和 getpeername ()gethostbyname() 和 gethostbyaddr()setsockopt()ioctlsocket()inet_pton()与inet_ntop()协议与地址使用TCP的服务器客户机举例服务器客户端使用UDP的服务器客户机举例服务器客户机API概览接口描述socket创建一个新的确定类型的套原创 2021-01-15 20:38:02 · 498 阅读 · 0 评论