Connection.h
Go to the documentation of this file.
54#define COMM_ORPHANED 0x80
106 void setAddrs(const Ip::Address &aLocal, const Ip::Address &aRemote) {local = aLocal; remote = aRemote;}
#define COMM_ORPHANED
not registered with Comm and not owned by any connection-closing code
Definition: Connection.h:54
Definition: CachePeer.h:31
Definition: CodeContext.h:53
Definition: Connection.h:73
const Security::NegotiationHistory * hasTlsNegotiations() const
Definition: Connection.h:138
time_t timeLeft(const time_t idleTimeout) const
Definition: Connection.cc:146
void setAddrs(const Ip::Address &aLocal, const Ip::Address &aRemote)
Definition: Connection.h:106
std::ostream & detailCodeContext(std::ostream &os) const override
appends human-friendly context description line(s) to a cache.log record
Definition: Connection.cc:189
void leaveOrphanage()
resume relying on owner(s) to initiate an explicit connection closure
Definition: Connection.h:92
void enterOrphanage()
close the still-open connection when its last reference is gone
Definition: Connection.h:90
Connection(const Connection &&)=delete
MEMPROXY_CLASS(Comm::Connection)
time_t connectTimeout(const time_t fwdStart) const
Definition: Connection.cc:164
Security::NegotiationHistory * tlsNegotiations()
Definition: Connection.cc:156
ConnectionPointer cloneProfile() const
Create a new closed Connection with the same configuration as this one.
Definition: Connection.cc:64
ScopedId codeContextGist() const override
Definition: Connection.cc:184
Definition: Eui48.h:28
Definition: Eui64.h:35
Definition: InstanceId.h:47
Definition: Address.h:41
Definition: InstanceId.h:19
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
std::ostream & operator<<(std::ostream &, const Connection &)
Definition: Connection.cc:195