29 auto res = sm._mirrorControl->pickBestMirror(
_fileMirrors );
53 settings = sm._spec.settings();
55 if ( myUrl.
getHost() != sm._spec.url().getHost() ) {
std::string getHost(EEncoding eflag=zypp::url::E_DECODED) const
Returns the hostname or IP from the URL authority.
DownloadPrivate & stateMachine()
std::pair< std::vector< Url >::const_iterator, MirrorHandle > MirrorPick
SignalProxy< void()> sigNewMirrorsReady()
The NetworkRequestError class Represents a error that occured in.
Type type() const
type Returns the type of the error
~MirrorHandlingStateBase() override
NetworkRequestError setupMirror(const MirrorControl::MirrorPick &pick, Url &url, TransferSettings &set)
virtual void failedToPrepare()
std::vector< Url > _fileMirrors
virtual void mirrorReceived(MirrorControl::MirrorPick mirror)=0
PrepareResult prepareNextMirror()
connection _sigMirrorsReadyConn
MirrorHandlingStateBase(DownloadPrivate &parent)