AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
amazon::davs::CurlProgressCallbackInterface Class Referenceabstract

#include <CurlProgressCallbackInterface.h>

Public Member Functions

virtual ~CurlProgressCallbackInterface ()=default
 
virtual bool onProgressUpdate (long dlTotal, long dlNow, long ulTotal, long ulNow)=0
 

Constructor & Destructor Documentation

◆ ~CurlProgressCallbackInterface()

virtual amazon::davs::CurlProgressCallbackInterface::~CurlProgressCallbackInterface ( )
virtualdefault

Member Function Documentation

◆ onProgressUpdate()

virtual bool amazon::davs::CurlProgressCallbackInterface::onProgressUpdate ( long  dlTotal,
long  dlNow,
long  ulTotal,
long  ulNow 
)
pure virtual

An event that is called with a frequent interval. While data is being transferred it will be called very frequently, and during slow periods like when nothing is being transferred it can slow down to about one call per second.

Parameters
dlTotal,totalbytes need to be downloaded, 0 if Unknown/unused
dlNow,numberof bytes downloaded so far, 0 if Unknown/unused
ulTotal,totalbytes need to be uploaded, 0 if Unknown/unused
ulNow,numberof bytes uploaded so far, 0 if Unknown/unused
Returns
Returning false will cause libcurl to abort the transfer and return

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0