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 void Update(
unsigned char *rawPdu,
size_t rawPduLen);
108 unsigned long GetId()
const {
return m_uniqueId; };
109 void ResetId(
const unsigned long newId) { m_uniqueId = newId; };
113 int SetPdu(
const int reason,
const Pdu &pdu,
const UdpAddress &fromaddress);
115 { pdu = m_pdu; reason = m_reason;
return 0; };
118 int Callback(
const int reason);
125 unsigned long m_uniqueId;
152 size_t rawPduLen,
const Address & address,
155 int DeleteEntry(
const unsigned long uniqueId);
156 void DeleteSocketEntry(
const SnmpSocket socket);
160 int GetNextTimeout(
msec &sendTime);
161 #ifdef HAVE_POLL_SYSCALL 163 bool GetFdArray(
struct pollfd *readfds,
int &remaining);
164 int HandleEvents(
const struct pollfd *readfds,
const int fds);
167 void GetFdSets(
int &maxfds, fd_set &readfds, fd_set &writefds,
169 int HandleEvents(
const int maxfds,
170 const fd_set &readfds,
171 const fd_set &writefds,
172 const fd_set &exceptfds);
178 int DoRetries(
const msec &sendtime);
182 int Done(
unsigned long);
216 #ifdef SNMP_PP_NAMESPACE 220 #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.