SNMP++  3.3.4
EventListHolder Class Reference

#include <eventlistholder.h>

Collaboration diagram for EventListHolder:

Public Member Functions

 EventListHolder (Snmp *snmp_session)
 
 ~EventListHolder ()
 
CSNMPMessageQueue *& snmpEventList ()
 
CNotifyEventQueue *& notifyEventList ()
 
unsigned long 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. More...
 
void SNMPExitMainLoop ()
 
int SNMPProcessEvents (const int max_block_milliseconds=0)
 Block until an event shows up - then handle the event(s). More...
 
int SNMPProcessPendingEvents ()
 
int SNMPBlockForResponse (const unsigned long req_id, Pdu &pdu)
 

Private Attributes

CSNMPMessageQueuem_snmpMessageQueue
 
CNotifyEventQueuem_notifyEventQueue
 
CEventList m_eventList
 
SnmpSynchronized pevents_mutex
 

Detailed Description

Definition at line 47 of file eventlistholder.h.

Constructor & Destructor Documentation

EventListHolder::EventListHolder ( Snmp snmp_session)
EventListHolder::~EventListHolder ( )
inline

Definition at line 51 of file eventlistholder.h.

Member Function Documentation

CNotifyEventQueue*& EventListHolder::notifyEventList ( )
inline

Definition at line 54 of file eventlistholder.h.

int EventListHolder::SNMPBlockForResponse ( const unsigned long  req_id,
Pdu pdu 
)
CSNMPMessageQueue*& EventListHolder::snmpEventList ( )
inline

Definition at line 53 of file eventlistholder.h.

void EventListHolder::SNMPExitMainLoop ( )
void EventListHolder::SNMPGetFdSets ( int &  maxfds,
fd_set &  readfds,
fd_set &  writefds,
fd_set &  exceptfds 
)
unsigned long 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 105 of file eventlistholder.h.

CNotifyEventQueue* EventListHolder::m_notifyEventQueue
private

Definition at line 104 of file eventlistholder.h.

CSNMPMessageQueue* EventListHolder::m_snmpMessageQueue
private

Definition at line 103 of file eventlistholder.h.

SnmpSynchronized EventListHolder::pevents_mutex
private

Definition at line 107 of file eventlistholder.h.


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