![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
我要加油呀
这个作者很懒,什么都没留下…
展开
-
OSI七层协议
通俗易懂https://blog.csdn.net/taotongning/article/details/81352985 模型参考图: OSI参考模型中每个分层的作用: 参考https://www.cnblogs.com/mike-mei/p/8548238.html ...转载 2019-04-11 10:55:17 · 140 阅读 · 0 评论 -
[c++]socket编程实例
对于TCP连接: 1.服务器端1)创建套接字create;2)绑定端口号bind;3)监听连接listen;4)接受连接请求accept,并返回新的套接字;5)用新返回的套接字recv/send;6)关闭套接字。 2.客户端1)创建套接字create; 2)发起建立连接请求connect; 3)发送/接收数据send/recv;4)关闭套接字。 TCP总结: Server端:create ...转载 2019-04-12 14:12:18 · 389 阅读 · 0 评论