libzypp 17.31.23
zyppng::MirrorControl::Mirror Struct Reference

#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-curl/ng/network/private/mirrorcontrol_p.h>

Public Member Functions

void startTransfer ()
 
void finishTransfer (const bool success)
 
void cancelTransfer ()
 
uint maxConnections () const
 
bool hasFreeConnections () const
 

Public Attributes

Url mirrorUrl
 
uint rating = 100
 
uint penalty = 0
 
uint maxRanges = 0
 
uint finishedTransfers = 0
 
uint runningTransfers = 0
 
uint failedTransfers = 0
 
uint successfulTransfers = 0
 

Private Member Functions

 Mirror (MirrorControl &parent)
 
void transferUnref ()
 

Private Attributes

MirrorControl_parent
 
NetworkRequest::Ptr _request
 
sigc::connection _finishedConn
 
uint _maxConnections = 0
 

Friends

class MirrorControl
 

Detailed Description

Definition at line 33 of file mirrorcontrol_p.h.

Constructor & Destructor Documentation

◆ Mirror()

zyppng::MirrorControl::Mirror::Mirror ( MirrorControl parent)
private

Definition at line 22 of file mirrorcontrol.cc.

Member Function Documentation

◆ startTransfer()

void zyppng::MirrorControl::Mirror::startTransfer ( )

Definition at line 25 of file mirrorcontrol.cc.

◆ finishTransfer()

void zyppng::MirrorControl::Mirror::finishTransfer ( const bool  success)

Definition at line 30 of file mirrorcontrol.cc.

◆ cancelTransfer()

void zyppng::MirrorControl::Mirror::cancelTransfer ( )

Definition at line 43 of file mirrorcontrol.cc.

◆ maxConnections()

uint zyppng::MirrorControl::Mirror::maxConnections ( ) const

Definition at line 48 of file mirrorcontrol.cc.

◆ hasFreeConnections()

bool zyppng::MirrorControl::Mirror::hasFreeConnections ( ) const

Definition at line 53 of file mirrorcontrol.cc.

◆ transferUnref()

void zyppng::MirrorControl::Mirror::transferUnref ( )
private

Definition at line 58 of file mirrorcontrol.cc.

Friends And Related Function Documentation

◆ MirrorControl

friend class MirrorControl
friend

Definition at line 55 of file mirrorcontrol_p.h.

Member Data Documentation

◆ mirrorUrl

Url zyppng::MirrorControl::Mirror::mirrorUrl

Definition at line 35 of file mirrorcontrol_p.h.

◆ rating

uint zyppng::MirrorControl::Mirror::rating = 100

Definition at line 36 of file mirrorcontrol_p.h.

◆ penalty

uint zyppng::MirrorControl::Mirror::penalty = 0

Definition at line 37 of file mirrorcontrol_p.h.

◆ maxRanges

uint zyppng::MirrorControl::Mirror::maxRanges = 0

Definition at line 38 of file mirrorcontrol_p.h.

◆ finishedTransfers

uint zyppng::MirrorControl::Mirror::finishedTransfers = 0

Definition at line 39 of file mirrorcontrol_p.h.

◆ runningTransfers

uint zyppng::MirrorControl::Mirror::runningTransfers = 0

Definition at line 40 of file mirrorcontrol_p.h.

◆ failedTransfers

uint zyppng::MirrorControl::Mirror::failedTransfers = 0

Definition at line 41 of file mirrorcontrol_p.h.

◆ successfulTransfers

uint zyppng::MirrorControl::Mirror::successfulTransfers = 0

Definition at line 42 of file mirrorcontrol_p.h.

◆ _parent

MirrorControl& zyppng::MirrorControl::Mirror::_parent
private

Definition at line 56 of file mirrorcontrol_p.h.

◆ _request

NetworkRequest::Ptr zyppng::MirrorControl::Mirror::_request
private

Definition at line 57 of file mirrorcontrol_p.h.

◆ _finishedConn

sigc::connection zyppng::MirrorControl::Mirror::_finishedConn
private

Definition at line 58 of file mirrorcontrol_p.h.

◆ _maxConnections

uint zyppng::MirrorControl::Mirror::_maxConnections = 0
private

Definition at line 60 of file mirrorcontrol_p.h.


The documentation for this struct was generated from the following files: