![](https://img-blog.csdnimg.cn/20190901184500624.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
http服务器
月雲之霄
这个作者很懒,什么都没留下…
展开
-
gettimeofday
作用:需要打印代码执行到某处的时间,或者需要计算程序执行的时间差(精确到微妙级)。这时会用到gettimeofday函数,它可以返回自1970-01-01 00:00:00到现在经历的秒数。 #include <sys/time.h> int gettimeofday(struct timeval *tv, struct timezone *tz) 参数说明: struct ...原创 2019-08-06 14:16:41 · 5299 阅读 · 0 评论 -
http服务器
目录索引 1. gettimeofday转载 2019-08-06 14:26:56 · 96 阅读 · 0 评论 -
从零实现一个http服务器
如果GET请求带参数,那么一般是附加在请求的url后面,参数与参数之间使用&分割,例如请求http://www.hootina.org/index_2013.php?param1=value1¶m2=value2¶m3=value3,我们看下这个请求组装的的http协议包格式: GET /index_2013.php?param1=value1¶m2=value2&am...转载 2019-08-07 16:40:59 · 267 阅读 · 0 评论 -
《个人项目学习指引》
1.从零实现一个http服务器原创 2019-08-07 16:42:59 · 124 阅读 · 0 评论 -
eventfd(三)
1. 测试代码: //https://www.jianshu.com/p/d7ebac8dc9f8 #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <pthread.h> #include <sys/eventfd.h> #include <...转载 2019-08-05 13:16:07 · 220 阅读 · 0 评论