]>
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
11 #include "ipc/forward.h"
13 #include "snmp_session.h"
19 /// snmp_session wrapper add pack/unpack feature
20 class Session
: public snmp_session
24 Session(const Session
& session
);
25 Session
& operator = (const Session
& session
);
28 void pack(Ipc::TypedMsgHdr
& msg
) const; ///< prepare for sendmsg()
29 void unpack(const Ipc::TypedMsgHdr
& msg
); ///< restore struct from the message
30 void clear(); ///< clear internal members
33 void free(); ///< free internal members
34 void assign(const Session
& session
); ///< perform full assignment
39 #endif /* SQUID_SNMPX_SESSION_H */