当前位置:网站首页>socket 长链接
socket 长链接
2022-07-27 05:21:00 【徒醉了清风l】
什么是socket。socket主要用于即时通讯。socket是长连接。
传统的http请求,随着服务端返回给客户端消息,两者之间的关联就消失了,所以服务端想要主要联系客户端就得靠轮询的方式,但是这种轮询比较耗费性能,既耗费客户端的性能,又耗费服务器资源,于是就有了长连接的概念。
传统型:

长链接:
边栏推荐
- 关于druid连接不上数据库的问题
- [first song] rebirth of me in py introductory training (4): Circular program
- C# Json编码在TCP通讯中的一些使用总结
- Weidongshan digital photo frame project learning (III) transplantation of freetype
- 开源WebGIS-相关知识
- UnityShader-LowPoly
- 哈夫曼树的求法,代码实现及证明,图文解释
- 力扣题解 动态规划(5)
- Callback uses lambda
- Super remote connection management tool: Royal TSX
猜你喜欢

Multi task foundation of IOT operating system
![[Arduino] reborn Arduino monk (1)](/img/ce/67118ebd430a0ff3ef98ec8524ee4a.jpg)
[Arduino] reborn Arduino monk (1)

QGIS系列(1)-QGIS(server-apache) win10安装

Day 3. Suicidal ideation and behavior in institutions of higher learning: A latent class analysis

遥感影像识别-成像合成

WebODM win10安装教程(亲测)

AE 3D粒子系统插件:Trapcode Particular

非重叠矩形中的随机点(力扣每日一题)

Unity 引擎开始从 Mono 迁移到 .NET CoreCLR

IOT operating system
随机推荐
力扣题解 动态规划(6)
力扣每日一题 剑指 Offer II 091. 粉刷房子
力扣题解 动态规划(4)
When multiple formulas in latex share a sequence number
Solve binary tree (7)
c语言-线性顺序表
制作视频特效必备工具:NUKE 13
Force buckle 110. Balanced binary tree
Kaggle调用自定义模块方法
Weidongshan digital photo frame project learning (II) displaying Chinese characters on LCD
数据库索引的一些说明以及使用
剪枝-量化-转onnx中文系列教程
遥感影像识别-制作数据集
[first song] rebirth of me in py introductory training (6): definition and application of functions
力扣题解 动态规划(1)
遥感影像识别-多类识别下的错分问题
力扣160. 相交链表
编程学习记录——第3课【初识C语言】
One of the usage of operator()
Super remote connection management tool: Royal TSX