Comments (4)
//constexpr BYTE data[] = { 0x47,0x58 }; // 测试这行什么都不输出 程序应该输出解压失败
- 数据格式正确,等待后续数据。
//constexpr BYTE data[] = { 0x11,0x12 }; // 测试这行 程序输出解压失败
- 数据格式不正确,立刻返回失败。
from hp-socket.
//constexpr BYTE data[] = { 0x47,0x58 }; // 测试这行什么都不输出 程序应该输出解压失败
- 数据格式正确,等待后续数据。
//constexpr BYTE data[] = { 0x11,0x12 }; // 测试这行 程序输出解压失败
- 数据格式不正确,立刻返回失败。
如果是这样的话,恰好碰到这种人为构造的脏数据,也就是 数据格式正确,等待后续数据
。 怎么办呢,这种情况又不算解压成功,又不算解压失败。对于一段待解压的数据,岂不是很不合理?
from hp-socket.
//constexpr BYTE data[] = { 0x47,0x58 }; // 测试这行什么都不输出 程序应该输出解压失败
- 数据格式正确,等待后续数据。
//constexpr BYTE data[] = { 0x11,0x12 }; // 测试这行 程序输出解压失败
- 数据格式不正确,立刻返回失败。
如果是这样的话,恰好碰到这种人为构造的脏数据,也就是
数据格式正确,等待后续数据
。 怎么办呢,这种情况又不算解压成功,又不算解压失败。对于一段待解压的数据,岂不是很不合理?
流式解压就是这样的特性。
from hp-socket.
我还是建议加入zstd压缩算法,目前性价比都很好的算法,内存低,压缩率高,速度又快,至少比现在hp socket的提供的压缩库来比的话
from hp-socket.
Related Issues (20)
- 在DLL中使用HP-Socket时退出DLL时卡死 HOT 3
- Invalid request code 然后程序崩溃 HOT 2
- ubuntu 22.04 HOT 2
- 无法启动服务器。( The listener will not start.) HOT 12
- 求官方支持macos和ios HOT 2
- 建议封装一个websocket类 HOT 2
- UDP服务端运行一会后奔溃 客户端以非常快速度发送数据 HOT 9
- mint
- 能否加入zstd压缩库 HOT 3
- 向全体发送消息时 调用Send有的时候发不出去 必须稍微延迟一会 HOT 2
- 6.0.1没发布?看日志记录有6.0.1 HOT 2
- 流式数据压缩 怎么用呀 HOT 4
- 作者是那个国家的? HOT 1
- 可以支持vcpkg? HOT 1
- HP_Create_BrotliCompressor 函数请求支持lambda表达式绑定 HOT 1
- 断线重连机制卡死 HOT 1
- 请问有没有类似sendmmsg和recvmmsg的支持,或者其他加速小包(payloa在32~64 Bytes)发送的功能呢 HOT 1
- 建议增加设置/获取 组件标识符功能, 为多个组件共用一个监听器提供便利 HOT 2
- 可以做个vcpkg的包吗? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hp-socket.