Logo Search packages:      
Sourcecode: pan version File versions  Download package

Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes

pan::NNTP_Pool Class Reference
[Tasks]

#include <nntp-pool.h>

Inheritance diagram for pan::NNTP_Pool:
Inheritance graph
[legend]
Collaboration diagram for pan::NNTP_Pool:
Collaboration graph
[legend]

List of all members.

Classes

class  Listener
struct  PoolItem

Public Member Functions

void abort_tasks ()
void add_listener (Listener *l)
virtual void check_in (NNTP *, Health)
NNTPcheck_out ()
void get_counts (int &setme_active, int &setme_idle, int &setme_connecting, int &setme_max) const
void idle_upkeep ()
 NNTP_Pool (const Quark &server, ServerInfo &server_info, Socket::Creator *)
void remove_listener (Listener *l)
void request_nntp (WorkerPool &)

Private Types

typedef std::set< Listener * > listeners_t
typedef std::vector< PoolItempool_items_t

Private Member Functions

void allow_new_connections ()
void disallow_new_connections_for_n_seconds (int n)
void fire_pool_error (const StringView &message)
void fire_pool_has_nntp_available ()
bool new_connections_are_allowed () const
virtual void on_nntp_done (NNTP *nntp UNUSED, Health health UNUSED, const StringView &response UNUSED)
virtual void on_nntp_done (NNTP *, Health, const StringView &)
virtual void on_nntp_group (NNTP *nntp UNUSED, const Quark &group UNUSED, unsigned long estimated_qty UNUSED, unsigned long low UNUSED, unsigned long high UNUSED)
virtual void on_nntp_line (NNTP *nntp UNUSED, const StringView &line UNUSED)
virtual void on_socket_created (const StringView &host, int port, bool ok, Socket *)

Private Attributes

int _active_count
listeners_t _listeners
int _pending_connections
pool_items_t _pool_items
const Quark _server
ServerInfo_server_info
Socket::Creator_socket_creator
time_t _time_to_allow_new_connections

Detailed Description

A pool of NNTP connections to a particular server.

Definition at line 39 of file nntp-pool.h.


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

Generated by  Doxygen 1.6.0   Back to index