zoukankan
html css js c++ java
TCP与UDP使用的指导方针
您应该用TCP,如果
您需要一个可靠的数据传输,以确保您的数据完整无缺的到达目的地
您的协议需要不止一个请求和服务器的应答
您要发送较多的数据
初始连接出现短暂的延迟是可以容忍的
您应该用UDP,如果:
您不太关心信息包是否到达或者不太在意信息包到达的顺序是否正确,再或者您可以自己觉察这些问题并自己解决
您的协议只包括基本请求和回答
您需要尽快建立网络会话
只传输很少一部分数据.UDP的限制是一个信息包不超过64KB的数据,通常人们只用UDP传送1KB以下的数据
查看全文
相关阅读:
基于html5拖拽api实现列表的拖拽排序
vue组件keepAlive的使用
阿里云OSS 服务端签名后直传之分片上传(结合element-ui的upload组件)
element-ui(vue)upload组件的http-request方法的使用
javascript知识梳理之数据类型
解决nginx 出现 413:Request Entity Too Large
git基本命令
npm源管理
element-ui的upload组件的clearFiles方法的调用
vue实例的生命周期
原文地址:https://www.cnblogs.com/djcsch2001/p/2035781.html
最新文章
【javascript】浏览器用户代理检测脚本实现
【前端】Require.js使用方法总结
【前端】特效-Javascript实现购物页面图片放大效果
Flex 布局教程:实例
vue项目使用Vant框架Rem适配(postcss-pxtorem、lib-flexible )的安装使用
vue项目使用qrcodejs2生成二维码
Element ui select获取label的值
vue+element-ui实现可折叠的树形表格
MomentJS记录下开发中用到的日期
css小技巧 --> 单标签实现单行文字居中,多行文字居左
热门文章
vue标签内循环数据逗号分隔
js实现图片上传本地预览
css实现 textarea 高度自适应
什么是语义化
浅谈CSS浮动属性
什么是CSS
什么是HTML?
什么是数组
浅谈C#中的for循环与foreach循环
php基础学习中认为重点的知识
Copyright © 2011-2022 走看看