Go to the documentation of this file.
9 #ifndef _SQUID_SRC_COMM_OPENERSTATEDATA_H
10 #define _SQUID_SRC_COMM_OPENERSTATEDATA_H
void timeout(const CommTimeoutCbParams &)
Close and wait a little before trying to open and connect again.
void sendAnswer(Comm::Flag errFlag, int xerrno, const char *why)
char * host_
domain name we are trying to connect to.
ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &handler, time_t connect_timeout)
handles to calls which we may need to cancel.
cleans I/O state and ends I/O for temporaryFd_
single connection currently to be opened.
virtual void start()
called by AsyncStart; do not call directly
const char * getHost() const
get the hostname noted for this connection
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
virtual bool doneAll() const
whether positive goal has been reached
void setHost(const char *)
set the hostname note for this connection
cleans up this job sleep state
static void DelayedConnectRetry(void *data)
total number of connection attempts over all destinations so far.
void mustStop(const char *aReason)
void const char HLPCB void * data
struct Comm::ConnOpener::Calls calls_
Make an FD connection attempt.
number of retries current destination has been tried.
handler to be called on connection completion.
the FD being opened. Do NOT set conn_->fd until it is fully open.
void earlyAbort(const CommCloseCbParams &)
CbcPointer< ConnOpener > Pointer
ConnOpener & operator=(const ConnOpener &c)
called at the end of Comm::ConnOpener::DelayedConnectRetry event
static int connect_timeout
if we are not done by then, we will call back with Comm::TIMEOUT
static void InProgressConnectRetry(int fd, void *data)
cleans I/O state and moves temporaryFd_ to the conn_ for long-term use