Request.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_REQUEST_H
12 #define SQUID_MGR_REQUEST_H
13 
14 #include "ipc/forward.h"
15 #include "ipc/Request.h"
16 #include "mgr/ActionParams.h"
17 
18 namespace Mgr
19 {
20 
22 class Request: public Ipc::Request
23 {
24 public:
25  Request(int aRequestorId, unsigned int aRequestId, const Comm::ConnectionPointer &aConn,
26  const ActionParams &aParams);
27 
28  explicit Request(const Ipc::TypedMsgHdr& msg);
29  /* Ipc::Request API */
30  virtual void pack(Ipc::TypedMsgHdr& msg) const;
31  virtual Pointer clone() const;
32 
33 private:
34  Request(const Request& request);
35 
36 public:
38 
40 };
41 
42 } // namespace Mgr
43 
44 #endif /* SQUID_MGR_REQUEST_H */
45 
cache manager request
Definition: Request.h:22
Request(int aRequestorId, unsigned int aRequestId, const Comm::ConnectionPointer &aConn, const ActionParams &aParams)
Definition: Request.cc:19
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
Cache Manager Action parameters extracted from the user request.
Definition: ActionParams.h:23
ActionParams params
action name and parameters
Definition: Request.h:39
virtual Pointer clone() const
returns a copy of this
Definition: Request.cc:60
virtual void pack(Ipc::TypedMsgHdr &msg) const
prepare for sendmsg()
Definition: Request.cc:49
Comm::ConnectionPointer conn
HTTP client connection descriptor.
Definition: Request.h:37
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
IPC request.
Definition: Request.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors