libzypp  13.10.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"

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 (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

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

Definition at line 34 of file MediaMultiCurl.cc.

#define WORKER_STARTING   0

Definition at line 103 of file MediaMultiCurl.cc.

#define WORKER_LOOKUP   1

Definition at line 104 of file MediaMultiCurl.cc.

#define WORKER_FETCH   2

Definition at line 105 of file MediaMultiCurl.cc.

#define WORKER_DISCARD   3

Definition at line 106 of file MediaMultiCurl.cc.

#define WORKER_DONE   4

Definition at line 107 of file MediaMultiCurl.cc.

#define WORKER_SLEEP   5

Definition at line 108 of file MediaMultiCurl.cc.

#define WORKER_BROKEN   6

Definition at line 109 of file MediaMultiCurl.cc.

#define BLKSIZE   131072

Definition at line 163 of file MediaMultiCurl.cc.

#define MAXURLS   10

Definition at line 164 of file MediaMultiCurl.cc.