![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络基础
o_bvious
这个作者很懒,什么都没留下…
展开
-
HTTP协议详解
HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。转载 2016-08-31 23:11:49 · 499 阅读 · 0 评论 -
来一个最简单的TCP服务器
1 #include<stdio.h> 2 #include<sys/types.h> 3 #include<sys/socket.h> 4 #include<stdlib.h> 5 #include<netinet/in.h> 6 #include<errno.h> 7 8 9 10 int init(const char* ip,int port) 11原创 2016-09-25 17:08:02 · 287 阅读 · 0 评论 -
ICMP协议详解
ICMP报文格式 ICMP报头从IP报头的第160位开始(IP首部20字节)(除非使用了IP报头的可选部分)。 ICMP报头 type 8位 询问报文: 8 和 0 ping 请求 响应 13和 14 ping时间戳,请求和回答 差错报告:终点不可达,超时,路由改变等 code 8位 进一步划分错误类型 校验和 16位 ICMP头部和数据 I...原创 2018-02-24 23:35:14 · 883 阅读 · 0 评论