]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/FunAction.cc
4 * DEBUG: section 16 Cache Manager API
9 #include "base/TextException.h"
10 #include "comm/Connection.h"
11 #include "ipc/UdsOp.h"
12 #include "mgr/Command.h"
13 #include "mgr/Filler.h"
14 #include "mgr/FunAction.h"
15 #include "mgr/Request.h"
19 Mgr::FunAction::Pointer
20 Mgr::FunAction::Create(const Command::Pointer
&aCmd
, OBJH
* aHandler
)
22 return new FunAction(aCmd
, aHandler
);
25 Mgr::FunAction::FunAction(const Command::Pointer
&aCmd
, OBJH
* aHandler
):
26 Action(aCmd
), handler(aHandler
)
28 Must(handler
!= NULL
);
33 Mgr::FunAction::respond(const Request
& request
)
36 Ipc::ImportFdIntoComm(request
.conn
, SOCK_STREAM
, IPPROTO_TCP
, Ipc::fdnHttpSocket
);
37 Must(Comm::IsConnOpen(request
.conn
));
38 Must(request
.requestId
!= 0);
39 AsyncJob::Start(new Mgr::Filler(this, request
.conn
, request
.requestId
));
43 Mgr::FunAction::dump(StoreEntry
* entry
)
48 storeAppendPrintf(entry
, "by kid%d {\n", KidIdentifier
);
50 if (atomic() && UsingSmp())
51 storeAppendPrintf(entry
, "} by kid%d\n\n", KidIdentifier
);