Logo Search packages:      
Sourcecode: pan version File versions

pan::NNTP_Pool Class Reference
[Tasks]

#include <nntp-pool.h>

Inheritance diagram for pan::NNTP_Pool:

pan::NNTP::Source pan::NNTP::Listener

List of all members.


Detailed Description

A pool of NNTP connections to a particular server.

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


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< PoolItem > pool_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 *, Health, const StringView &)
virtual void on_nntp_group (NNTP *nntp, const Quark &group, unsigned long estimated_qty, unsigned long low, unsigned long high)
virtual void on_nntp_line (NNTP *nntp, const StringView &line)
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

Classes

class  Listener
struct  PoolItem

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

Generated by  Doxygen 1.6.0   Back to index