9#ifndef SQUID_SRC_COMM_TCPACCEPTOR_H
10#define SQUID_SRC_COMM_TCPACCEPTOR_H
46 void start()
override;
49 const char *
status()
const override;
100 static void doAccept(
int fd,
void *data);
AsyncCall::Pointer closer_
listen socket closure handler
bool intendedForUserConnections() const
whether we are listening on one of the squid.conf *ports
static void doAccept(int fd, void *data)
Method callback for whenever an FD is ready to accept a client connection.
void start() override
called by AsyncStart; do not call directly
CbcPointer< Comm::TcpAcceptor > Pointer
TcpAcceptor(const TcpAcceptor &)
void unsubscribe(const char *reason)
AnyP::PortCfgPointer listenPort_
configuration details of the listening port (if provided)
int errcode
errno code of the last accept() or listen() action if one occurred.
bool doneAll() const override
whether positive goal has been reached
Subscription::Pointer theCallSub
used to generate AsyncCalls handling our events.
void handleClosure(const CommCloseCbParams &io)
CBDATA_CHILD(TcpAcceptor)
const char * status() const override
internal cleanup; do not call directly
bool acceptInto(Comm::ConnectionPointer &)
void subscribe(const Subscription::Pointer &aSub)
void notify(const Comm::Flag flag, const Comm::ConnectionPointer &details) const
Call the subscribed callback handler with details about a new connection.
void logAcceptError(const ConnectionPointer &tcpClient) const
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.