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