ConnOpener.h
Go to the documentation of this file.
33 ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &handler, time_t connect_timeout);
Definition: AsyncJob.h:32
Definition: CbcPointer.h:26
Definition: CommCalls.h:128
Definition: CommCalls.h:134
Definition: ConnOpener.h:25
int totalTries_
total number of connection attempts over all destinations so far.
Definition: ConnOpener.h:73
ConnOpener(const ConnOpener &)
void restart()
called at the end of Comm::ConnOpener::DelayedConnectRetry event
Definition: ConnOpener.cc:266
static void InProgressConnectRetry(int fd, void *data)
Definition: ConnOpener.cc:475
void retrySleep()
Close and wait a little before trying to open and connect again.
Definition: ConnOpener.cc:397
struct Comm::ConnOpener::Calls calls_
CBDATA_CHILD(ConnOpener)
static void DelayedConnectRetry(void *data)
Definition: ConnOpener.cc:493
time_t deadline_
if we are not done by then, we will call back with Comm::TIMEOUT
Definition: ConnOpener.h:77
void sendAnswer(Comm::Flag errFlag, int xerrno, const char *why)
Definition: ConnOpener.cc:122
ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &handler, time_t connect_timeout)
Definition: ConnOpener.cc:32
int temporaryFd_
the FD being opened. Do NOT set conn_->fd until it is fully open.
Definition: ConnOpener.h:69
ConnOpener & operator=(const ConnOpener &c)
void keepFd()
cleans I/O state and moves temporaryFd_ to the conn_ for long-term use
Definition: ConnOpener.cc:238
AsyncCall::Pointer callback_
handler to be called on connection completion.
Definition: ConnOpener.h:71
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17