OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::DownloadFile Namespace Reference

Functions

OT_COMMUNICATION_API_EXPORT bool downloadFrontendInstaller (const std::string &_gssUrl, const std::string &_fileName, std::string &_tempFolder, std::string &_error, int _timeout=5000)
 Download a file via HTTP from a server.
 

Function Documentation

◆ downloadFrontendInstaller()

bool ot::DownloadFile::downloadFrontendInstaller ( const std::string & _gssUrl,
const std::string & _fileName,
std::string & _tempFolder,
std::string & _error,
int _timeout = 5000 )

Download a file via HTTP from a server.

Parameters
_gssUrlThe URL of the global session service
_fileNameName of the file where the data will be stored
_tempFolderReturn parameter containing the name of the temporary directory where the file is stored
_errorReturn parameter containing an error description in case that an error occurred (return value = false)
_timeoutThe timeout for contacting the server