ActionWriter.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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#include "squid.h"
12#include "base/TextException.h"
13#include "comm/Connection.h"
14#include "mgr/ActionWriter.h"
15#include "Store.h"
16
18
20 StoreToCommWriter(conn, anAction->createStoreEntry()),
21 action(anAction)
22{
23 debugs(16, 5, conn << " action: " << action);
24}
25
26void
28{
29 debugs(16, 5, MYNAME);
30 Must(action != nullptr);
31
33 action->fillEntry(entry, false);
34}
35
CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter)
#define Must(condition)
Definition: TextException.h:75
int conn
the current server connection FD
Definition: Transport.cc:26
Action::Pointer action
action that fills the entry
Definition: ActionWriter.h:34
ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn)
Definition: ActionWriter.cc:19
void start() override
called by AsyncStart; do not call directly
Definition: ActionWriter.cc:27
void start() override
called by AsyncStart; do not call directly
#define MYNAME
Definition: Stream.h:236
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:194
Cache Manager API.
Definition: Action.h:20
static bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:315

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors