61 #ifndef _SNMP_MSGQUEUE_H_ 62 #define _SNMP_MSGQUEUE_H_ 68 #if !(defined CPU && CPU == PPC603) 82 #ifdef SNMP_PP_NAMESPACE 101 unsigned char * rawPdu,
107 unsigned long GetId()
const {
return m_uniqueId; };
108 void ResetId(
const unsigned long newId) { m_uniqueId = newId; };
112 int SetPdu(
const int reason,
const Pdu &pdu,
const UdpAddress &fromaddress);
114 { pdu = m_pdu; reason = m_reason;
return 0; };
117 int Callback(
const int reason);
124 unsigned long m_uniqueId;
151 size_t rawPduLen,
const Address & address,
154 int DeleteEntry(
const unsigned long uniqueId);
155 void DeleteSocketEntry(
const SnmpSocket socket);
159 int GetNextTimeout(
msec &sendTime);
160 #ifdef HAVE_POLL_SYSCALL 162 bool GetFdArray(
struct pollfd *readfds,
int &remaining);
163 int HandleEvents(
const struct pollfd *readfds,
const int fds);
166 void GetFdSets(
int &maxfds, fd_set &readfds, fd_set &writefds,
168 int HandleEvents(
const int maxfds,
169 const fd_set &readfds,
170 const fd_set &writefds,
171 const fd_set &exceptfds);
177 int DoRetries(
const msec &sendtime);
180 int Done(
unsigned long);
214 #ifdef SNMP_PP_NAMESPACE 218 #endif // _SNMP_MSGQUEUE_H_ class CSNMPMessageQueueElt * m_previous
CSNMPMessage * GetMessage()
void(* snmp_callback)(int reason, Snmp *session, Pdu &pdu, SnmpTarget &target, void *data)
Async methods of the class Snmp require the caller to provide a callback address of a function with t...
class CSNMPMessageQueueElt * m_Next
EventListHolder * my_holder
void ResetId(const unsigned long newId)
void GetSendTime(msec &sendTime) const
Base class of all Address classes.
void SetLocked(const bool l)
SnmpSocket GetSocket() const
unsigned long GetId() const
int GetPdu(int &reason, Pdu &pdu)
CSNMPMessageQueueElt * GetNext()
CSNMPMessageQueueElt m_head
Abstract class used to provide a virtual interface into Targets.