]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Request.h
2 * Copyright (C) 1996-2014 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_REQUEST_H
12 #define SQUID_SNMPX_REQUEST_H
14 #include "ip/Address.h"
15 #include "ipc/forward.h"
16 #include "ipc/Request.h"
18 #include "snmp/Session.h"
24 class Request
: public Ipc::Request
27 Request(int aRequestorId
, unsigned int aRequestId
, const Pdu
& aPdu
,
28 const Session
& aSession
, int aFd
, const Ip::Address
& anAddress
);
30 explicit Request(const Ipc::TypedMsgHdr
& msg
); ///< from recvmsg()
31 /* Ipc::Request API */
32 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
33 virtual Pointer
clone() const;
36 Request(const Request
& request
);
39 Pdu pdu
; ///< SNMP protocol data unit
40 Session session
; ///< SNMP session
41 int fd
; ///< client connection descriptor
42 Ip::Address address
; ///< client address
47 #endif /* SQUID_SNMPX_REQUEST_H */