]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Session.h
4 * DEBUG: section 49 SNMP Interface
8 #ifndef SQUID_SNMPX_SESSION_H
9 #define SQUID_SNMPX_SESSION_H
12 #include "ipc/forward.h"
14 #include "snmp_session.h"
20 /// snmp_session wrapper add pack/unpack feature
21 class Session
: public snmp_session
25 Session(const Session
& session
);
26 Session
& operator = (const Session
& session
);
29 void pack(Ipc::TypedMsgHdr
& msg
) const; ///< prepare for sendmsg()
30 void unpack(const Ipc::TypedMsgHdr
& msg
); ///< restore struct from the message
31 void clear(); ///< clear internal members
34 void free(); ///< free internal members
35 void assign(const Session
& session
); ///< perform full assignment
40 #endif /* SQUID_SNMPX_SESSION_H */