Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

EventListHolder Class Reference

#include <eventlistholder.h>

Collaboration diagram for EventListHolder:

[legend]
List of all members.

Public Member Functions

 EventListHolder (Snmp *snmp_session)
 ~EventListHolder ()
CSNMPMessageQueue *& snmpEventList ()
CNotifyEventQueue *& notifyEventList ()
Uint32 SNMPGetNextTimeout ()
void SNMPGetFdSets (int &maxfds, fd_set &readfds, fd_set &writefds, fd_set &exceptfds)
void SNMPMainLoop (const int max_block_milliseconds=0)
 Infinite loop which blocks when there is nothing to do and handles any events.

void SNMPExitMainLoop ()
int SNMPProcessEvents (const int max_block_milliseconds=0)
 Block until an event shows up - then handle the event(s).

int SNMPProcessPendingEvents ()
int SNMPBlockForResponse (const unsigned long req_id, Pdu &pdu)

Private Attributes

CSNMPMessageQueuem_snmpMessageQueue
CNotifyEventQueuem_notifyEventQueue
CEventList m_eventList
SnmpSynchronized pevents_mutex

Constructor & Destructor Documentation

EventListHolder::EventListHolder Snmp snmp_session  ) 
 

EventListHolder::~EventListHolder  ) 
 


Member Function Documentation

CNotifyEventQueue*& EventListHolder::notifyEventList  )  [inline]
 

Definition at line 74 of file eventlistholder.h.

int EventListHolder::SNMPBlockForResponse const unsigned long  req_id,
Pdu pdu
 

CSNMPMessageQueue*& EventListHolder::snmpEventList  )  [inline]
 

Definition at line 73 of file eventlistholder.h.

void EventListHolder::SNMPExitMainLoop  ) 
 

void EventListHolder::SNMPGetFdSets int &  maxfds,
fd_set &  readfds,
fd_set &  writefds,
fd_set &  exceptfds
 

Uint32 EventListHolder::SNMPGetNextTimeout  ) 
 

void EventListHolder::SNMPMainLoop const int  max_block_milliseconds = 0  ) 
 

Infinite loop which blocks when there is nothing to do and handles any events.

Note:
If no messages are outstanding, select() is called with the given timeout, so any async messages that are sent out later are not processed until this select call returns.

int EventListHolder::SNMPProcessEvents const int  max_block_milliseconds = 0  ) 
 

Block until an event shows up - then handle the event(s).

Note:
If no messages are outstanding, select() is called with the given timeout, so any async messages that are sent out later are not processed until this select call returns.

int EventListHolder::SNMPProcessPendingEvents  ) 
 


Member Data Documentation

CEventList EventListHolder::m_eventList [private]
 

Definition at line 157 of file eventlistholder.h.

CNotifyEventQueue* EventListHolder::m_notifyEventQueue [private]
 

Definition at line 150 of file eventlistholder.h.

CSNMPMessageQueue* EventListHolder::m_snmpMessageQueue [private]
 

Definition at line 149 of file eventlistholder.h.

SnmpSynchronized EventListHolder::pevents_mutex [private]
 

Definition at line 159 of file eventlistholder.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 4 22:42:18 2005 for SNMP++ by doxygen 1.3.2