transfer_at_least_t

Hi, I have an object of transfer_at_least_t. I would like to find out what the minimum value is due to the fact that my app that set it is requiring so many bytes of unencrypted data, and the transfer is including the encryption. Is there any interface that can get this value or do I have to store it before I create the object transfer_at_least_t? Carla Strembicke Software Developer [cid:image015772.JPG@7ddd0ff8.4ca8ab2e] SUBNET Solutions Inc. www.SUBNET.comhttp://www.SUBNET.com/ Making Substations More Intelligent T: 403.270.8885 F: 403.270.9631 #100, 4639 Manhattan Road SE, Calgary, Alberta, Canada; T2G 4B3 CONFIDENTIAL INFORMATION NOTICE: The information contained in this e-mail is privileged, confidential and intended solely for the use of the addressee named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you received this in error, please contact the sender and destroy all copies of this e-mail. Thank you.

Hi,
I have an object of transfer_at_least_t. I would like to find out what the minimum value is due to the fact that my app that set it is requiring so many bytes of unencrypted data, and the transfer is including the encryption.
I'm not sure I understand the above sentence, but anyway - a completion condition is just a functor with the following operator() signature: template <typename Error> std::size_t operator()(const Error& err, std::size_t bytes_transferred); It accepts the number of bytes that have already been transferred, and must return the maximum number of bytes to be transferred. Standard completion conditions do not provide any other interfaces. But you can add to your own completion condition whatever interfaces you want, make it "stateful" etc. Note however that this functor might get copied, so updating & reading its state could be a bit tricky. (BTW, it's worth mentioting in the message title that you mean asio library).
participants (2)
-
Carla Strembicke
-
Igor R