自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 多进程,I/O复用聊天室程序

利用epoll和多进程实现聊天室服务器程序

2020-05-19 13:28:47 145

原创 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 281

原创 实现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 414

原创 手动分析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&gt...

2020-04-08 15:16:35 362

原创 服务器客户机聊天程序(非阻塞套接字)

服务器客户机聊天程序(非阻塞套接字)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 133

原创 服务器客户机聊天程序(阻塞套接字)

服务器客户机聊天程序(阻塞套接字)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 99

原创 简单线程池

一个简单线程池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 149

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除