SNMP++  3.3.4
CNotifyEventQueue Class Reference

#include <notifyqueue.h>

Inheritance diagram for CNotifyEventQueue:
Collaboration diagram for CNotifyEventQueue:

Classes

class  CNotifyEventQueueElt
 

Public Member Functions

 CNotifyEventQueue (EventListHolder *holder, Snmp *session)
 
 ~CNotifyEventQueue ()
 
int AddEntry (Snmp *snmp, const OidCollection &trapids, const TargetCollection &targets)
 
CNotifyEventGetEntry (Snmp *snmp)
 
void DeleteEntry (Snmp *snmp)
 
int GetNextTimeout (msec &)
 
void GetFdSets (int &maxfds, fd_set &readfds, fd_set &writefds, fd_set &exceptfds)
 
int HandleEvents (const int maxfds, const fd_set &readfds, const fd_set &writefds, const fd_set &exceptfds)
 
int GetCount ()
 
int DoRetries (const msec &)
 
int Done ()
 
void set_listen_port (int port)
 
int get_listen_port ()
 
SnmpSocket get_notify_fd () const
 
- Public Member Functions inherited from CEvents
virtual ~CEvents ()
 
- Public Member Functions inherited from SnmpSynchronized
 SnmpSynchronized ()
 
virtual ~SnmpSynchronized ()
 
void lock ()
 
void unlock ()
 

Protected Member Functions

void cleanup ()
 

Protected Attributes

CNotifyEventQueueElt m_head
 
int m_msgCount
 
SnmpSocket m_notify_fd
 
int m_listen_port
 
EventListHoldermy_holder
 
Snmpm_snmpSession
 
UdpAddress m_notify_addr
 

Additional Inherited Members

- Public Attributes inherited from SnmpSynchronized
pthread_mutex_t _mutex
 

Detailed Description

Definition at line 123 of file notifyqueue.h.

Constructor & Destructor Documentation

CNotifyEventQueue::CNotifyEventQueue ( EventListHolder holder,
Snmp session 
)
CNotifyEventQueue::~CNotifyEventQueue ( )

Member Function Documentation

int CNotifyEventQueue::AddEntry ( Snmp snmp,
const OidCollection trapids,
const TargetCollection targets 
)
void CNotifyEventQueue::cleanup ( )
protected
void CNotifyEventQueue::DeleteEntry ( Snmp snmp)
int CNotifyEventQueue::Done ( )
inlinevirtual

Implements CEvents.

Definition at line 154 of file notifyqueue.h.

int CNotifyEventQueue::DoRetries ( const msec )
inlinevirtual

Implements CEvents.

Definition at line 152 of file notifyqueue.h.

int CNotifyEventQueue::get_listen_port ( )
inline

Definition at line 156 of file notifyqueue.h.

SnmpSocket CNotifyEventQueue::get_notify_fd ( ) const
int CNotifyEventQueue::GetCount ( )
inlinevirtual

Implements CEvents.

Definition at line 150 of file notifyqueue.h.

CNotifyEvent* CNotifyEventQueue::GetEntry ( Snmp snmp)
void CNotifyEventQueue::GetFdSets ( int &  maxfds,
fd_set &  readfds,
fd_set &  writefds,
fd_set &  exceptfds 
)
virtual

Implements CEvents.

int CNotifyEventQueue::GetNextTimeout ( msec )
inlinevirtual

Implements CEvents.

Definition at line 135 of file notifyqueue.h.

int CNotifyEventQueue::HandleEvents ( const int  maxfds,
const fd_set &  readfds,
const fd_set &  writefds,
const fd_set &  exceptfds 
)
virtual

Implements CEvents.

void CNotifyEventQueue::set_listen_port ( int  port)
inline

Definition at line 155 of file notifyqueue.h.

Member Data Documentation

CNotifyEventQueueElt CNotifyEventQueue::m_head
protected

Definition at line 187 of file notifyqueue.h.

int CNotifyEventQueue::m_listen_port
protected

Definition at line 190 of file notifyqueue.h.

int CNotifyEventQueue::m_msgCount
protected

Definition at line 188 of file notifyqueue.h.

UdpAddress CNotifyEventQueue::m_notify_addr
protected

Definition at line 193 of file notifyqueue.h.

SnmpSocket CNotifyEventQueue::m_notify_fd
protected

Definition at line 189 of file notifyqueue.h.

Snmp* CNotifyEventQueue::m_snmpSession
protected

Definition at line 192 of file notifyqueue.h.

EventListHolder* CNotifyEventQueue::my_holder
protected

Definition at line 191 of file notifyqueue.h.


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