65 #include <sys/types.h>
71 #if !(defined CPU && CPU == PPC603)
85 #ifdef SNMP_PP_NAMESPACE
108 unsigned char * rawPdu,
114 unsigned long GetId()
const {
return m_uniqueId; };
115 void ResetId(
const unsigned long newId) { m_uniqueId = newId; };
119 int SetPdu(
const int reason,
const Pdu &pdu,
const UdpAddress &fromaddress);
121 { pdu = m_pdu; reason = m_reason;
return 0; };
124 int Callback(
const int reason);
131 unsigned long m_uniqueId;
158 size_t rawPduLen,
const Address & address,
161 int DeleteEntry(
const unsigned long uniqueId);
162 void DeleteSocketEntry(
const SnmpSocket socket);
166 int GetNextTimeout(
msec &sendTime);
167 #ifdef HAVE_POLL_SYSCALL
169 bool GetFdArray(
struct pollfd *readfds,
int &remaining);
170 int HandleEvents(
const struct pollfd *readfds,
const int fds);
173 void GetFdSets(
int &maxfds, fd_set &readfds, fd_set &writefds,
175 int HandleEvents(
const int maxfds,
176 const fd_set &readfds,
177 const fd_set &writefds,
178 const fd_set &exceptfds);
184 int DoRetries(
const msec &sendtime);
187 int Done(
unsigned long);
221 #ifdef SNMP_PP_NAMESPACE
class CSNMPMessageQueueElt * m_previous
void GetSendTime(msec &sendTime) const
CSNMPMessage * GetMessage()
class CSNMPMessageQueueElt * m_Next
unsigned long GetId() const
EventListHolder * my_holder
void ResetId(const unsigned long newId)
Base class of all Address classes.
void SetLocked(const bool l)
int GetPdu(int &reason, Pdu &pdu)
CSNMPMessageQueueElt * GetNext()
SnmpSocket GetSocket() const
CSNMPMessageQueueElt m_head
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...
Abstract class used to provide a virtual interface into Targets.