- 博客(7)
- 收藏
- 关注
原创 CGI服务器原理
CGI服务器原理#include <stdlib.h>#include <sys/types.h>#include <stdio.h>#include <netinet/in.h>#include <string.h>#include <arpa/inet.h>#include <unistd.h>...
2020-04-22 15:52:07 299
原创 实现PING功能
实现ping功能 具体细节可以看注释#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <sys/socket.h>#include <sys/types.h>#include <netinet...
2020-04-09 15:21:09 442
原创 手动分析TCP,UDP,ICMP,IGMP协议
对于各种协议进行分析#include <sys/types.h>#include <sys/socket.h>#include <sys/ioctl.h>#include <net/if.h>#include <string.h>#include <stdio.h>#include <stdlib.h>...
2020-04-08 15:16:35 382
原创 服务器客户机聊天程序(非阻塞套接字)
服务器客户机聊天程序(非阻塞套接字)serve.cpp#include <stdlib.h>#include <sys/types.h>#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <string.h>#incl...
2020-04-02 14:44:37 146
原创 服务器客户机聊天程序(阻塞套接字)
服务器客户机聊天程序(阻塞套接字)serve.cpp#include <stdlib.h>#include <sys/types.h>#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <string.h>#inclu...
2020-04-02 14:43:12 113
原创 简单线程池
一个简单线程池thread_pool.h#ifndef __THREAD_POOL_H#define __THREAD_POOL_H#include <vector>#include <string>#include <pthread.h>using namespace std;//执行任务的类:设置任务数据并执行class CTask{...
2020-04-02 14:40:39 188
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人