CommRead.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 05 Comm */
10 
11 #ifndef COMMREAD_H
12 #define COMMREAD_H
13 
14 #include "base/CbDataList.h"
15 #include "comm.h"
16 #include "comm/forward.h"
17 #include "CommCalls.h"
18 
19 class CommRead
20 {
21 
22 public:
23  CommRead();
26  char *buf;
27  int len;
29 };
30 
32 {
33 
34 public:
35  typedef void DeferrableRead(void *context, CommRead const &);
36  DeferredRead ();
37  DeferredRead (DeferrableRead *, void *, CommRead const &);
38  void markCancelled();
40  void *theContext;
42  bool cancelled;
44 
45 private:
46 };
47 
49 {
50 
51 public:
53  void delayRead(DeferredRead const &);
54  void kickReads(int const count);
55 
56 private:
59  void kickARead(DeferredRead const &);
60  void flushReads();
62 };
63 
64 #endif /* COMMREAD_H */
65 
AsyncCall::Pointer callback
Definition: CommRead.h:28
void * theContext
Definition: CommRead.h:40
DeferredRead()
Definition: comm.cc:1706
bool cancelled
Definition: CommRead.h:42
DeferrableRead * theReader
Definition: CommRead.h:39
CommRead theRead
Definition: CommRead.h:41
static CLCB CloseHandler
Definition: CommRead.h:57
static DeferredRead popHead(CbDataListContainer< DeferredRead > &deferredReads)
Definition: comm.cc:1752
int len
Definition: CommRead.h:27
CbDataListContainer< DeferredRead > deferredReads
Definition: CommRead.h:61
void flushReads()
Definition: comm.cc:1802
CommRead()
Definition: comm.cc:1701
void delayRead(DeferredRead const &)
Definition: comm.cc:1723
AsyncCall::Pointer closer
internal close handler used by Comm
Definition: CommRead.h:43
void CLCB(const CommCloseCbParams &params)
Definition: CommCalls.h:42
void DeferrableRead(void *context, CommRead const &)
Definition: CommRead.h:35
void kickReads(int const count)
Definition: comm.cc:1781
char * buf
Definition: CommRead.h:26
void kickARead(DeferredRead const &)
Definition: comm.cc:1816
void markCancelled()
Definition: comm.cc:1830
Comm::ConnectionPointer conn
Definition: CommRead.h:25

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors