/*
- * $Id: client_side.cc,v 1.648 2003/07/11 01:40:36 robertc Exp $
+ * $Id: client_side.cc,v 1.649 2003/07/11 02:11:47 robertc Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
ConnStateData::close()
{
debug(33, 3) ("ConnStateData::close: FD %d\n", fd);
- open_ = false;
+ openReference = NULL;
clientdbEstablished(peer.sin_addr, -1); /* decrement */
assert(areAllContextsForThisConnection());
freeAllContexts();
bool
ConnStateData::isOpen() const
{
- return open_;
+ return openReference.getRaw() != NULL;
}
ConnStateData::~ConnStateData()
delete this;
}
-ConnStateData::ConnStateData() : transparent_ (false), reading_ (false), open_(true)
+ConnStateData::ConnStateData() : transparent_ (false), reading_ (false), openReference (this)
{}
bool
/*
- * $Id: client_side.h,v 1.3 2003/07/11 01:40:36 robertc Exp $
+ * $Id: client_side.h,v 1.4 2003/07/11 02:11:47 robertc Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
CBDATA_CLASS(ConnStateData);
bool transparent_;
bool reading_;
- bool open_;
+ Pointer openReference;
};
#endif /* SQUID_CLIENTSIDE_H */