MCPcopy Create free account
hub / github.com/dillo-browser/dillo / Plain_callback

Function Plain_callback

src/plain.cc:231–243  ·  view source on GitHub ↗

* This function is a cache client */

Source from the content-addressed store, hash-verified

229 * This function is a cache client
230 */
231static void Plain_callback(int Op, CacheClient_t *Client)
232{
233 DilloPlain *plain = (DilloPlain*)Client->CbData;
234
235 if (Op) {
236 /* Do the last line: */
237 plain->write(Client->Buf, Client->BufSize, 1);
238 /* remove this client from our active list */
239 a_Bw_close_client(plain->bw, Client->Key);
240 } else {
241 plain->write(Client->Buf, Client->BufSize, 0);
242 }
243}
244

Callers

nothing calls this directly

Calls 2

a_Bw_close_clientFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected