47 if (closer !=
nullptr) {
78 aggrPdu = response.
pdu;
96 mustStop(
"commClosed");
113 aggrPdu.fixAggregate();
116 int len =
sizeof(buffer);
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
void error(char *format,...)
#define CBDATA_NAMESPACED_CLASS_INIT(namespace, type)
Comm::ConnectionPointer conn
bool doneAll() const override
whether positive goal has been reached
virtual void handleException(const std::exception &e)
do specific exception handling
void start() override
called by AsyncStart; do not call directly
Request::Pointer request
cache manager request received from client
void noteCommClosed(const CommCloseCbParams ¶ms)
called when the some external force closed our socket
bool aggregate(Ipc::Response::Pointer aResponse) override
perform aggregating of responses and returns true if need to continue
AsyncCall::Pointer closer
comm_close handler
void sendResponse() override
send response to client
void cleanup() override
closes our copy of the client connection socket
Comm::ConnectionPointer conn
client connection descriptor
Inquirer(const Request &aRequest, const Ipc::StrandCoords &coords)
void start() override
called by AsyncStart; do not call directly
void handleException(const std::exception &e) override
do specific exception handling
bool doneAll() const override
whether positive goal has been reached
void aggregate(const Pdu &pdu)
Session session
SNMP session.
Ip::Address address
client address
int fd
client connection descriptor
Pdu pdu
SNMP protocol data unit.
AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *handler, void *data)
void comm_remove_close_handler(int fd, CLCB *handler, void *data)
int comm_udp_sendto(int fd, const Ip::Address &to_addr, const void *buf, int len)
#define debugs(SECTION, LEVEL, CONTENT)
bool IsConnOpen(const Comm::ConnectionPointer &conn)
std::vector< StrandCoord > StrandCoords
a collection of strand coordinates; the order, if any, is owner-dependent
int snmp_build(struct snmp_session *, struct snmp_pdu *, u_char *, int *)
#define SNMP_REQUEST_SIZE
#define SNMP_PDU_RESPONSE