MediaCurl.cc File Reference

#include <iostream>
#include <list>
#include "zypp/base/Logger.h"
#include "zypp/ExternalProgram.h"
#include "zypp/base/String.h"
#include "zypp/base/Sysconfig.h"
#include "zypp/base/Gettext.h"
#include "zypp/media/MediaCurl.h"
#include "zypp/media/proxyinfo/ProxyInfos.h"
#include "zypp/media/ProxyInfo.h"
#include "zypp/media/MediaUserAuth.h"
#include "zypp/thread/Once.h"
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <boost/format.hpp>

Go to the source code of this file.

Namespaces

namespace  zypp
namespace  zypp::media

Defines

#define DETECT_DIR_INDEX   0
#define CONNECT_TIMEOUT   60
#define TRANSFER_TIMEOUT   60 * 3
#define TRANSFER_TIMEOUT_MAX   60 * 60

Functions

void _do_free_once ()
void globalFreeOnce ()
void _do_init_once ()
void globalInitOnce ()
int log_curl (CURL *curl, curl_infotype info, char *ptr, size_t len, void *max_lvl)
static void zypp::media::escape (string &str_r, const char char_r, const string &escaped_r)
static string zypp::media::escapedPath (string path_r)
static string zypp::media::unEscape (string text_r)

Variables

zypp::thread::OnceFlag g_InitOnceFlag = PTHREAD_ONCE_INIT
zypp::thread::OnceFlag g_FreeOnceFlag = PTHREAD_ONCE_INIT


Detailed Description

Definition in file MediaCurl.cc.


Define Documentation

#define DETECT_DIR_INDEX   0

Definition at line 36 of file MediaCurl.cc.

#define CONNECT_TIMEOUT   60

Definition at line 37 of file MediaCurl.cc.

Referenced by zypp::media::MediaCurl::attachTo().

#define TRANSFER_TIMEOUT   60 * 3

Definition at line 38 of file MediaCurl.cc.

Referenced by zypp::media::MediaCurl::attachTo().

#define TRANSFER_TIMEOUT_MAX   60 * 60

Definition at line 39 of file MediaCurl.cc.

Referenced by zypp::media::MediaCurl::attachTo().


Function Documentation

void @221::_do_free_once (  )  [static]

Definition at line 50 of file MediaCurl.cc.

Referenced by globalFreeOnce().

void @221::globalFreeOnce (  )  [static]

Definition at line 55 of file MediaCurl.cc.

References _do_free_once(), and zypp::thread::callOnce().

void @221::_do_init_once (  )  [static]

Definition at line 60 of file MediaCurl.cc.

References WAR.

Referenced by globalInitOnce().

void @221::globalInitOnce (  )  [inline, static]

Definition at line 78 of file MediaCurl.cc.

References _do_init_once(), and zypp::thread::callOnce().

Referenced by zypp::media::MediaCurl::MediaCurl().

int @221::log_curl ( CURL *  curl,
curl_infotype  info,
char *  ptr,
size_t  len,
void *  max_lvl 
) [static]

Definition at line 83 of file MediaCurl.cc.

References DBG, and zypp::str::split().

Referenced by zypp::media::MediaCurl::attachTo().


Variable Documentation

zypp::thread::OnceFlag g_InitOnceFlag = PTHREAD_ONCE_INIT [static]

Definition at line 47 of file MediaCurl.cc.

zypp::thread::OnceFlag g_FreeOnceFlag = PTHREAD_ONCE_INIT [static]

Definition at line 48 of file MediaCurl.cc.

long timeout

Definition at line 126 of file MediaCurl.cc.

bool reached

Definition at line 127 of file MediaCurl.cc.

callback::SendReport<DownloadProgressReport>* report

Definition at line 128 of file MediaCurl.cc.

Referenced by zypp::RepoManager::addRepository(), zypp::RepoManager::buildCache(), zypp::cleanCacheInternal(), zypp::target::TargetImpl::commit(), zypp::target::rpm::convertV3toV4(), zypp::RepoManager::createFromCache(), zypp::MediaSetAccess::doesFileExist(), zypp::target::ExecuteScriptHelper(), zypp::media::MediaCurl::getFileCopy(), zypp::target::rpm::RpmDb::getPackages(), zypp::target::rpm::RpmDb::installPackage(), zypp::ChecksumFileChecker::operator()(), zypp::MediaSetAccess::provideDir(), zypp::MediaSetAccess::provideFileInternal(), zypp::target::rpm::RpmDb::rebuildDatabase(), zypp::RepoManager::removeRepository(), and zypp::KeyRing::Impl::verifyFileSignatureWorkflow().

time_t ltime

Definition at line 129 of file MediaCurl.cc.

double dload

Definition at line 130 of file MediaCurl.cc.

double uload

Definition at line 131 of file MediaCurl.cc.

zypp::Url url

Definition at line 132 of file MediaCurl.cc.

Referenced by zypp::url::UrlBase::asString(), zypp::RepoManager::buildCache(), zypp::repo::PackageProvider::doProvidePackage(), zypp::MediaSetAccess::getMediaAccessId(), zypp::Url::operator=(), zypp::Url::parseUrl(), zypp::repo::RepoMediaAccess::provideFile(), zypp::repo::PackageProvider::providePackage(), zypp::readRepoFile(), zypp::RepoManager::refreshMetadata(), zypp::MediaSetAccess::rewriteUrl(), and zypp::Url::setScheme().


Generated on Tue Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3