libzypp  17.22.0
zyppng::NetworkRequestDispatcherPrivate Class Reference

#include <networkrequestdispatcher_p.h>

Inheritance diagram for zyppng::NetworkRequestDispatcherPrivate:

Public Member Functions

 NetworkRequestDispatcherPrivate ()
 
virtual ~NetworkRequestDispatcherPrivate ()
 
- Public Member Functions inherited from zyppng::BasePrivate
virtual ~BasePrivate ()
 

Public Attributes

size_t _maxConnections = 10
 
std::deque< std::shared_ptr< NetworkRequest > > _pendingDownloads
 
std::vector< std::shared_ptr< NetworkRequest > > _runningDownloads
 
std::shared_ptr< Timer_timer
 
std::map< curl_socket_t, std::shared_ptr< SocketNotifier > > _socketHandler
 
bool _isRunning = false
 
bool _locked = false
 
CURLM * _multi = nullptr
 
NetworkRequestError _lastError
 
signal< void(NetworkRequestDispatcher &, NetworkRequest &)> _sigDownloadStarted
 
signal< void(NetworkRequestDispatcher &, NetworkRequest &)> _sigDownloadFinished
 
signal< void(NetworkRequestDispatcher &)> _sigQueueFinished
 
signal< void(NetworkRequestDispatcher &)> _sigError
 
- Public Attributes inherited from zyppng::BasePrivate
Base::WeakPtr parent
 
std::unordered_set< Base::Ptrchildren
 
Basez_ptr = nullptr
 

Private Member Functions

void multiTimerTimout (const Timer &t)
 
int socketCallback (CURL *easy, curl_socket_t s, int what, void *)
 
void cancelAll (NetworkRequestError result)
 
void setFinished (NetworkRequest &req, NetworkRequestError result)
 
void onSocketActivated (const SocketNotifier &listener, int events)
 
void handleMultiSocketAction (curl_socket_t nativeSocket, int evBitmask)
 
void dequeuePending ()
 

Static Private Member Functions

static int multi_timer_cb (CURLM *multi, long timeout_ms, void *g)
 
static int static_socket_callback (CURL *easy, curl_socket_t s, int what, void *userp, SocketNotifier *socketp)
 

Detailed Description

Definition at line 15 of file networkrequestdispatcher_p.h.

Constructor & Destructor Documentation

◆ NetworkRequestDispatcherPrivate()

zyppng::NetworkRequestDispatcherPrivate::NetworkRequestDispatcherPrivate ( )

Definition at line 18 of file networkrequestdispatcher.cc.

◆ ~NetworkRequestDispatcherPrivate()

zyppng::NetworkRequestDispatcherPrivate::~NetworkRequestDispatcherPrivate ( )
virtual

Definition at line 32 of file networkrequestdispatcher.cc.

Member Function Documentation

◆ multi_timer_cb()

int zyppng::NetworkRequestDispatcherPrivate::multi_timer_cb ( CURLM *  multi,
long  timeout_ms,
void *  g 
)
staticprivate

Definition at line 39 of file networkrequestdispatcher.cc.

◆ static_socket_callback()

int zyppng::NetworkRequestDispatcherPrivate::static_socket_callback ( CURL *  easy,
curl_socket_t  s,
int  what,
void *  userp,
SocketNotifier socketp 
)
staticprivate

Definition at line 58 of file networkrequestdispatcher.cc.

◆ multiTimerTimout()

void zyppng::NetworkRequestDispatcherPrivate::multiTimerTimout ( const Timer t)
private

Definition at line 53 of file networkrequestdispatcher.cc.

◆ socketCallback()

int zyppng::NetworkRequestDispatcherPrivate::socketCallback ( CURL *  easy,
curl_socket_t  s,
int  what,
void *   
)
private

Definition at line 65 of file networkrequestdispatcher.cc.

◆ cancelAll()

void zyppng::NetworkRequestDispatcherPrivate::cancelAll ( NetworkRequestError  result)
private

Definition at line 187 of file networkrequestdispatcher.cc.

◆ setFinished()

void zyppng::NetworkRequestDispatcherPrivate::setFinished ( NetworkRequest req,
NetworkRequestError  result 
)
private

Definition at line 204 of file networkrequestdispatcher.cc.

◆ onSocketActivated()

void zyppng::NetworkRequestDispatcherPrivate::onSocketActivated ( const SocketNotifier listener,
int  events 
)
private

Definition at line 130 of file networkrequestdispatcher.cc.

◆ handleMultiSocketAction()

void zyppng::NetworkRequestDispatcherPrivate::handleMultiSocketAction ( curl_socket_t  nativeSocket,
int  evBitmask 
)
private

Definition at line 143 of file networkrequestdispatcher.cc.

◆ dequeuePending()

void zyppng::NetworkRequestDispatcherPrivate::dequeuePending ( )
private

Definition at line 235 of file networkrequestdispatcher.cc.

Member Data Documentation

◆ _maxConnections

size_t zyppng::NetworkRequestDispatcherPrivate::_maxConnections = 10

Definition at line 22 of file networkrequestdispatcher_p.h.

◆ _pendingDownloads

std::deque< std::shared_ptr<NetworkRequest> > zyppng::NetworkRequestDispatcherPrivate::_pendingDownloads

Definition at line 24 of file networkrequestdispatcher_p.h.

◆ _runningDownloads

std::vector< std::shared_ptr<NetworkRequest> > zyppng::NetworkRequestDispatcherPrivate::_runningDownloads

Definition at line 25 of file networkrequestdispatcher_p.h.

◆ _timer

std::shared_ptr<Timer> zyppng::NetworkRequestDispatcherPrivate::_timer

Definition at line 27 of file networkrequestdispatcher_p.h.

◆ _socketHandler

std::map< curl_socket_t, std::shared_ptr<SocketNotifier> > zyppng::NetworkRequestDispatcherPrivate::_socketHandler

Definition at line 28 of file networkrequestdispatcher_p.h.

◆ _isRunning

bool zyppng::NetworkRequestDispatcherPrivate::_isRunning = false

Definition at line 30 of file networkrequestdispatcher_p.h.

◆ _locked

bool zyppng::NetworkRequestDispatcherPrivate::_locked = false

Definition at line 31 of file networkrequestdispatcher_p.h.

◆ _multi

CURLM* zyppng::NetworkRequestDispatcherPrivate::_multi = nullptr

Definition at line 32 of file networkrequestdispatcher_p.h.

◆ _lastError

NetworkRequestError zyppng::NetworkRequestDispatcherPrivate::_lastError

Definition at line 34 of file networkrequestdispatcher_p.h.

◆ _sigDownloadStarted

signal<void ( NetworkRequestDispatcher &, NetworkRequest & )> zyppng::NetworkRequestDispatcherPrivate::_sigDownloadStarted

Definition at line 37 of file networkrequestdispatcher_p.h.

◆ _sigDownloadFinished

signal<void ( NetworkRequestDispatcher &, NetworkRequest & )> zyppng::NetworkRequestDispatcherPrivate::_sigDownloadFinished

Definition at line 38 of file networkrequestdispatcher_p.h.

◆ _sigQueueFinished

signal<void ( NetworkRequestDispatcher & )> zyppng::NetworkRequestDispatcherPrivate::_sigQueueFinished

Definition at line 39 of file networkrequestdispatcher_p.h.

◆ _sigError

signal<void ( NetworkRequestDispatcher & )> zyppng::NetworkRequestDispatcherPrivate::_sigError

Definition at line 40 of file networkrequestdispatcher_p.h.


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