Response.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 /* DEBUG: section 16 Cache Manager API */
10 
11 #ifndef SQUID_MGR_RESPONSE_H
12 #define SQUID_MGR_RESPONSE_H
13 
14 #include "ipc/forward.h"
15 #include "ipc/Response.h"
16 #include "mgr/Action.h"
17 
18 namespace Mgr
19 {
20 
23 class Response: public Ipc::Response
24 {
25 public:
26  Response(unsigned int aRequestId, Action::Pointer anAction = NULL);
27 
28  explicit Response(const Ipc::TypedMsgHdr& msg);
29 
30  /* Ipc::Response API */
31  virtual void pack(Ipc::TypedMsgHdr& msg) const;
32  virtual Ipc::Response::Pointer clone() const;
33 
34  bool hasAction() const;
35  const Action& getAction() const;
36 
37 private:
38  Response(const Response& response);
39 
40 public:
42 };
43 
44 } // namespace Mgr
45 
46 #endif /* SQUID_MGR_RESPONSE_H */
47 
Action::Pointer action
action relating to response
Definition: Response.h:41
Response(unsigned int aRequestId, Action::Pointer anAction=NULL)
Definition: Response.cc:20
virtual Ipc::Response::Pointer clone() const
returns a copy of this
Definition: Response.cc:60
const Action & getAction() const
returns action object
Definition: Response.cc:72
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
A response to Ipc::Request.
Definition: Response.h:21
bool hasAction() const
whether response contain action object
Definition: Response.cc:66
#define NULL
Definition: types.h:166
virtual void pack(Ipc::TypedMsgHdr &msg) const
prepare for sendmsg()
Definition: Response.cc:48

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors