4 * DEBUG: section 84 Helper process maintenance
5 * AUTHOR: Robert Collins
7 * SQUID Web Proxy Cache http://www.squid-cache.org/
8 * ----------------------------------------------------------
10 * Squid is the result of efforts by numerous individuals from
11 * the Internet community; see the CONTRIBUTORS file for full
12 * details. Many organizations have provided support for Squid's
13 * development; see the SPONSORS file for full details. Squid is
14 * Copyrighted (C) 2001 by the Regents of the University of
15 * California; see the COPYRIGHT file for full details. Squid
16 * incorporates software developed and/or copyrighted by other
17 * sources; see the CREDITS file for full details.
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
36 #include "comm/Connection.h"
37 #include "MemObject.h"
38 #include "HttpReply.h"
40 #include "DelayPools.h"
43 RemovalPolicy
* mem_policy
= NULL
;
46 MemObject::endOffset() const
48 return data_hdr
.endOffset();
52 MemObject::trimSwappable()
54 fatal ("Not implemented");
58 MemObject::trimUnSwappable()
60 fatal ("Not implemented");
64 MemObject::policyLowestOffsetToKeep(bool swap
) const
66 fatal ("Not implemented");
70 MemObject::MemObject (char const *, char const *)
74 MemObject::getReply() const
82 fatal ("Not implemented");
86 MemObject::delayRead(DeferredRead
const &aRead
)
88 fatal ("Not implemented");
92 MemObject::readAheadPolicyCanRead() const
94 fatal ("Not implemented");
99 MemObject::setNoDelay(bool const newValue
)
101 fatal ("Not implemented");
104 MemObject::~MemObject()
106 fatal ("Not implemented");
110 MemObject::mostBytesWanted(int max
) const
112 fatal ("Not implemented");
118 MemObject::mostBytesAllowed() const
121 fatal ("Not implemented");
127 MemObject::unlinkRequest()
129 fatal ("Not implemented");
133 MemObject::write(StoreIOBuffer writeBuffer
, STMCB
*callback
, void *callbackData
)
135 PROF_start(MemObject_write
);
136 debugs(19, 6, "memWrite: offset " << writeBuffer
.offset
<< " len " << writeBuffer
.length
);
138 /* the offset is into the content, not the headers */
139 writeBuffer
.offset
+= (_reply
? _reply
->hdr_sz
: 0);
141 /* We don't separate out mime headers yet, so ensure that the first
142 * write is at offset 0 - where they start
144 assert (data_hdr
.endOffset() || writeBuffer
.offset
== 0);
146 assert (data_hdr
.write (writeBuffer
));
147 callback (callbackData
, writeBuffer
);
148 PROF_stop(MemObject_write
);
152 MemObject::replaceHttpReply(HttpReply
*newrep
)
154 fatal ("Not implemented");
158 MemObject::lowestMemReaderOffset() const
160 fatal ("Not implemented");
165 MemObject::kickReads()
167 fatal ("Not implemented");
171 MemObject::objectBytesOnDisk() const
173 fatal ("MemObject.cc required.");
178 MemObject::isContiguous() const
180 fatal ("MemObject.cc required.");
185 MemObject::expectedReplySize() const
187 fatal ("MemObject.cc required.");
192 MemObject::resetUrls(char const*, char const*)
194 fatal ("MemObject.cc required.");
198 MemObject::markEndOfReplyHeaders()
200 fatal ("MemObject.cc required.");
204 MemObject::inUseCount()
206 fatal ("MemObject.cc required.");