CbcPointer<Xaction> self(this);
Dialer dialer(self, &Adaptation::Icap::Xaction::noteCommConnected);
dialer.params.conn = connection;
- dialer.params.flag = COMM_OK;
+ dialer.params.flag = Comm::OK;
// fake other parameters by copying from the existing connection
connector = asyncCall(93,3, "Adaptation::Icap::Xaction::noteCommConnected", dialer);
ScheduleCallHere(connector);
CbcPointer<Xaction> self(this);
Dialer dialer(self, &Adaptation::Icap::Xaction::noteCommConnected);
dialer.params.conn = connection;
- dialer.params.flag = COMM_ERROR;
+ dialer.params.flag = Comm::ERROR;
// fake other parameters by copying from the existing connection
connector = asyncCall(93,3, "Adaptation::Icap::Xaction::noteCommConnected", dialer);
ScheduleCallHere(connector);
{
debugs(93, 5, HERE << "reused connection");
Adaptation::Icap::Xaction *x = (Adaptation::Icap::Xaction*)data;
- x->noteCommConnected(COMM_OK);
+ x->noteCommConnected(Comm::OK);
}
#endif
{
cs = NULL;
- if (io.flag == COMM_TIMEOUT) {
+ if (io.flag == Comm::TIMEOUT) {
handleCommTimedout();
return;
}
Must(connector != NULL);
connector = NULL;
- if (io.flag != COMM_OK)
+ if (io.flag != Comm::OK)
dieOnConnectionFailure(); // throws
typedef CommCbMemFunT<Adaptation::Icap::Xaction, CommTimeoutCbParams> TimeoutDialer;
ignoreLastWrite = false;
debugs(93, 7, HERE << "ignoring last write; status: " << io.flag);
} else {
- Must(io.flag == COMM_OK);
+ Must(io.flag == Comm::OK);
al.icap.bytesSent += io.size;
updateTimeout();
handleCommWrote(io.size);
Must(reader != NULL);
reader = NULL;
- Must(io.flag == COMM_OK);
+ Must(io.flag == Comm::OK);
if (!io.size) {
commEof = true;