libzypp  17.23.6
MediaMultiCurl.cc File Reference
#include <ctype.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <vector>
#include <iostream>
#include <algorithm>
#include <zypp/ZConfig.h>
#include <zypp/base/Logger.h>
#include <zypp/media/MediaMultiCurl.h>
#include <zypp/media/MetaLinkParser.h>
#include <zypp/ManagedFile.h>
#include <zypp/media/CurlHelper.h>
Include dependency graph for MediaMultiCurl.cc:

Go to the source code of this file.

Classes

class  zypp::media::multifetchworker
 
class  zypp::media::multifetchrequest
 

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::media
 

Macros

#define CURLVERSION_AT_LEAST(M, N, O)   LIBCURL_VERSION_NUM >= ((((M)<<8)+(N))<<8)+(O)
 
#define WORKER_STARTING   0
 
#define WORKER_LOOKUP   1
 
#define WORKER_FETCH   2
 
#define WORKER_DISCARD   3
 
#define WORKER_DONE   4
 
#define WORKER_SLEEP   5
 
#define WORKER_BROKEN   6
 
#define BLKSIZE   131072
 
#define MAXURLS   10
 

Functions

static double zypp::media::currentTime ()
 
static bool zypp::media::env_isset (std::string name)
 
static bool zypp::media::looks_like_metalink_fd (int fd)
 
static bool zypp::media::looks_like_metalink (const Pathname &file)
 

Macro Definition Documentation

◆ CURLVERSION_AT_LEAST

#define CURLVERSION_AT_LEAST (   M,
  N,
 
)    LIBCURL_VERSION_NUM >= ((((M)<<8)+(N))<<8)+(O)

Definition at line 36 of file MediaMultiCurl.cc.

◆ WORKER_STARTING

#define WORKER_STARTING   0

Definition at line 105 of file MediaMultiCurl.cc.

◆ WORKER_LOOKUP

#define WORKER_LOOKUP   1

Definition at line 106 of file MediaMultiCurl.cc.

◆ WORKER_FETCH

#define WORKER_FETCH   2

Definition at line 107 of file MediaMultiCurl.cc.

◆ WORKER_DISCARD

#define WORKER_DISCARD   3

Definition at line 108 of file MediaMultiCurl.cc.

◆ WORKER_DONE

#define WORKER_DONE   4

Definition at line 109 of file MediaMultiCurl.cc.

◆ WORKER_SLEEP

#define WORKER_SLEEP   5

Definition at line 110 of file MediaMultiCurl.cc.

◆ WORKER_BROKEN

#define WORKER_BROKEN   6

Definition at line 111 of file MediaMultiCurl.cc.

◆ BLKSIZE

#define BLKSIZE   131072

Definition at line 165 of file MediaMultiCurl.cc.

◆ MAXURLS

#define MAXURLS   10

Definition at line 166 of file MediaMultiCurl.cc.