DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 16:49:09 +0000
Post From: Historical data zip format?
[2018-01-06 21:18:37] |
AndrewAMD1 - Posts: 31 |
I have a question about zlib with DTC. (Long term, I might implement this if I run into bandwidth problems.) So with uncompressed messages, I can always read the type and size up front and size my buffers accordingly. (This is using C++17 & Boost Asio.) But I think it is not this simple when using zlib. Okay, so I request historical data and get an uncompressed header. But then the rest of the messages are in compressed zlib? I need a feasible way to allocate buffers and decode without ruining the decompression process. 1) In general, how should I approach receiving zlib data from the historical server? 2) How am I supposed to know when I received all messages for a particular request if the "last message" flag is already encoded? |