]>
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"
12 #include "ipc/UdsOp.h"
13 #include "mgr/Command.h"
14 #include "mgr/Filler.h"
15 #include "mgr/FunAction.h"
16 #include "mgr/Request.h"
21 Mgr::FunAction::Pointer
22 Mgr::FunAction::Create(const Command::Pointer
&aCmd
, OBJH
* aHandler
)
24 return new FunAction(aCmd
, aHandler
);
27 Mgr::FunAction::FunAction(const Command::Pointer
&aCmd
, OBJH
* aHandler
):
28 Action(aCmd
), handler(aHandler
)
30 Must(handler
!= NULL
);
35 Mgr::FunAction::respond(const Request
& request
)
38 Ipc::ImportFdIntoComm(request
.conn
, SOCK_STREAM
, IPPROTO_TCP
, Ipc::fdnHttpSocket
);
39 Must(Comm::IsConnOpen(request
.conn
));
40 Must(request
.requestId
!= 0);
41 AsyncJob::Start(new Mgr::Filler(this, request
.conn
, request
.requestId
));
45 Mgr::FunAction::dump(StoreEntry
* entry
)
50 storeAppendPrintf(entry
, "by kid%d {\n", KidIdentifier
);
52 if (atomic() && UsingSmp())
53 storeAppendPrintf(entry
, "} by kid%d\n\n", KidIdentifier
);