SNMP request. More...
#include <Request.h>


Public Types | |
| typedef RefCount< Request > | Pointer | 
Public Member Functions | |
| Request (int aRequestorId, Ipc::RequestId aRequestId, const Pdu &aPdu, const Session &aSession, int aFd, const Ip::Address &anAddress) | |
| Request (const Ipc::TypedMsgHdr &msg) | |
| from recvmsg()  More... | |
| void | pack (Ipc::TypedMsgHdr &msg) const override | 
| prepare for sendmsg()  More... | |
| Pointer | clone () const override | 
| returns a copy of this  More... | |
Public Attributes | |
| Pdu | pdu | 
| SNMP protocol data unit.  More... | |
| Session | session | 
| SNMP session.  More... | |
| int | fd | 
| client connection descriptor  More... | |
| Ip::Address | address | 
| client address  More... | |
| int | requestorId = 0 | 
| kidId of the requestor; used for response destination  More... | |
| RequestId | requestId | 
| matches the request[or] with the response  More... | |
Detailed Description
Member Typedef Documentation
◆ Pointer
      
  | 
  inherited | 
Constructor & Destructor Documentation
◆ Request() [1/2]
| Snmp::Request::Request | ( | int | aRequestorId, | 
| Ipc::RequestId | aRequestId, | ||
| const Pdu & | aPdu, | ||
| const Session & | aSession, | ||
| int | aFd, | ||
| const Ip::Address & | anAddress | ||
| ) | 
Definition at line 16 of file Request.cc.
◆ Request() [2/2]
      
  | 
  explicit | 
Definition at line 24 of file Request.cc.
References Ipc::TypedMsgHdr::checkType(), Ipc::TypedMsgHdr::getFd(), Ipc::TypedMsgHdr::getPod(), Ipc::TypedMsgHdr::hasFd(), and Ipc::mtSnmpRequest.
Member Function Documentation
◆ clone()
      
  | 
  overridevirtual | 
Implements Ipc::Request.
Definition at line 53 of file Request.cc.
◆ pack()
      
  | 
  overridevirtual | 
Implements Ipc::Request.
Definition at line 38 of file Request.cc.
References Ipc::mtSnmpRequest, Ipc::TypedMsgHdr::putFd(), Ipc::TypedMsgHdr::putPod(), and Ipc::TypedMsgHdr::setType().
Member Data Documentation
◆ address
| Ip::Address Snmp::Request::address | 
Definition at line 39 of file Request.h.
Referenced by Snmp::Forwarder::sendError(), and Snmp::Inquirer::sendResponse().
◆ fd
| int Snmp::Request::fd | 
Definition at line 38 of file Request.h.
Referenced by Snmp::Inquirer::Inquirer().
◆ pdu
| Pdu Snmp::Request::pdu | 
Definition at line 36 of file Request.h.
Referenced by Ipc::Strand::handleSnmpRequest(), and Snmp::Forwarder::sendError().
◆ requestId
      
  | 
  inherited | 
Definition at line 38 of file Request.h.
Referenced by Ipc::Coordinator::handleCacheMgrRequest(), Ipc::Strand::handleSnmpRequest(), Ipc::Coordinator::handleSnmpRequest(), Mgr::FunAction::respond(), Mgr::Action::respond(), and Mgr::InfoAction::respond().
◆ requestorId
      
  | 
  inherited | 
Definition at line 37 of file Request.h.
Referenced by Ipc::Coordinator::handleCacheMgrRequest(), Ipc::Coordinator::handleSnmpRequest(), and Mgr::Request::Request().
◆ session
| Session Snmp::Request::session | 
Definition at line 37 of file Request.h.
Referenced by Snmp::Forwarder::sendError(), and Snmp::Inquirer::sendResponse().
The documentation for this class was generated from the following files:
- src/snmp/Request.h
 - src/snmp/Request.cc
 
Introduction
- About Squid
 - Why Squid?
 - Squid Developers
 - How to Donate
 - How to Help Out
 - Getting Squid
 - Squid Source Packages
 - Squid Deployment Case-Studies
 - Squid Software Foundation
 
Documentation
- Quick Setup
 - Configuration:
 - FAQ and Wiki
 - Guide Books:
 - Non-English
 - More...
 
Support
- Security Advisories
 - Bugzilla Database
 - Mailing lists
 - Contacting us
 - Commercial services
 - Project Sponsors
 - Squid-based products
 
