#ifndef COMMREAD_H
#define COMMREAD_H
-#include "squid.h"
#include "comm.h"
#include "CommCalls.h"
+#include "comm/forward.h"
#include "CbDataList.h"
class CommRead
{
public:
- CommRead ();
- CommRead (int fd, char *buf, int len, AsyncCall::Pointer &callback);
- int fd;
+ CommRead();
+ CommRead(const Comm::ConnectionPointer &c, char *buf, int len, AsyncCall::Pointer &callback);
+ Comm::ConnectionPointer conn;
char *buf;
int len;
AsyncCall::Pointer callback;
void kickReads(int const count);
private:
- static PF CloseHandler;
+ static CLCB CloseHandler;
static DeferredRead popHead(CbDataListContainer<DeferredRead> &deferredReads);
void kickARead(DeferredRead const &);
void flushReads();
CbDataListContainer<DeferredRead> deferredReads;
};
-
#endif /* COMMREAD_H */