TcpAcceptor.h
Go to the documentation of this file.
54 TcpAcceptor(const Comm::ConnectionPointer &conn, const char *note, const Subscription::Pointer &aSub);
55 TcpAcceptor(const AnyP::PortCfgPointer &listenPort, const char *note, const Subscription::Pointer &aSub);
Definition: AsyncJob.h:32
CBDATA_CLASS(TcpAcceptor)
Definition: AcceptLimiter.h:30
void handleClosure(const CommCloseCbParams &io)
Definition: TcpAcceptor.cc:191
Definition: CbcPointer.h:26
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
Comm::Flag oldAccept(Comm::ConnectionPointer &details)
Definition: TcpAcceptor.cc:344
TcpAcceptor(const TcpAcceptor &)
virtual const char * status() const
internal cleanup; do not call directly
Definition: TcpAcceptor.cc:124
Definition: TcpAcceptor.h:39
void notify(const Comm::Flag flag, const Comm::ConnectionPointer &details) const
Call the subscribed callback handler with details about a new connection.
Definition: TcpAcceptor.cc:314
bool intendedForUserConnections() const
whether we are listening on one of the squid.conf *ports
Definition: TcpAcceptor.h:107
static void doAccept(int fd, void *data)
Method callback for whenever an FD is ready to accept a client connection.
Definition: TcpAcceptor.cc:211
AnyP::PortCfgPointer listenPort_
configuration details of the listening port (if provided)
Definition: TcpAcceptor.h:94
Definition: CommCalls.h:133
void logAcceptError(const ConnectionPointer &tcpClient) const
Definition: TcpAcceptor.cc:249
void subscribe(const Subscription::Pointer &aSub)
Definition: TcpAcceptor.cc:58
int errcode
errno code of the last accept() or listen() action if one occurred.
Definition: TcpAcceptor.h:78
Subscription::Pointer theCallSub
used to generate AsyncCalls handling our events.
Definition: TcpAcceptor.h:87