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
Definition: CbcPointer.h:26
Definition: CommCalls.h:128
Definition: AcceptLimiter.h:30
Definition: TcpAcceptor.h:39
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
TcpAcceptor(const TcpAcceptor &)
AnyP::PortCfgPointer listenPort_
configuration details of the listening port (if provided)
Definition: TcpAcceptor.h:94
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
void handleClosure(const CommCloseCbParams &io)
Definition: TcpAcceptor.cc:191
CBDATA_CHILD(TcpAcceptor)
const char * status() const override
internal cleanup; do not call directly
Definition: TcpAcceptor.cc:124
bool acceptInto(Comm::ConnectionPointer &)
Definition: TcpAcceptor.cc:345
void subscribe(const Subscription::Pointer &aSub)
Definition: TcpAcceptor.cc:60
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:321
void logAcceptError(const ConnectionPointer &tcpClient) const
Definition: TcpAcceptor.cc:249
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17