]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Session.h
4bcfad55aade889daf50fc61f9e160fc6dbd74bc
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 49 SNMP Interface */
11 #ifndef SQUID_SNMPX_SESSION_H
12 #define SQUID_SNMPX_SESSION_H
14 #include "ipc/forward.h"
16 #include "snmp_session.h"
21 /// snmp_session wrapper add pack/unpack feature
22 class Session
: public snmp_session
26 Session(const Session
& session
);
27 Session
& operator = (const Session
& session
);
28 ~Session() { reset(); }
30 void pack(Ipc::TypedMsgHdr
& msg
) const; ///< prepare for sendmsg()
31 void unpack(const Ipc::TypedMsgHdr
& msg
); ///< restore struct from the message
34 void reset(); ///< free internal members
39 #endif /* SQUID_SNMPX_SESSION_H */