void dataSent (size_t amount);
int len;
char *buf;
- int64_t *size_ptr; /* pointer to size in an ConnStateData for logging */
+ int64_t *size_ptr; /* pointer to size in an ConnStateData for logging */
Comm::ConnectionPointer conn; ///< The currently connected connection.
typedef void (TunnelStateData::*Method)(Ssl::PeerConnectorAnswer &);
MyAnswerDialer(Method method, TunnelStateData *tunnel):
- method_(method), tunnel_(tunnel), answer_() {}
+ method_(method), tunnel_(tunnel), answer_() {}
/* CallDialer API */
virtual bool canDial(AsyncCall &call) { return tunnel_.valid(); }
}
TunnelStateData::TunnelStateData() :
- url(NULL),
- http(),
- request(NULL),
- status_ptr(NULL),
- logTag_ptr(NULL),
- connectRespBuf(NULL),
- connectReqWriting(false)
+ url(NULL),
+ http(),
+ request(NULL),
+ status_ptr(NULL),
+ logTag_ptr(NULL),
+ connectRespBuf(NULL),
+ connectReqWriting(false)
{
debugs(26, 3, "TunnelStateData constructed this=" << this);
}
return;
}
- const CbcPointer<TunnelStateData> safetyLock(this); /* ??? should be locked by the caller... */
+ const CbcPointer<TunnelStateData> safetyLock(this); /* ??? should be locked by the caller... */
if (cbdataReferenceValid(this))
copyRead(client, ReadClient);
return;
}
- CbcPointer<TunnelStateData> safetyLock(this); /* ??? should be locked by the caller... */
+ CbcPointer<TunnelStateData> safetyLock(this); /* ??? should be locked by the caller... */
if (cbdataReferenceValid(this))
copyRead(server, ReadServer);
mb.init();
mb.Printf("CONNECT %s HTTP/1.1\r\n", tunnelState->url);
HttpStateData::httpBuildRequestHeader(tunnelState->request.getRaw(),
- NULL, /* StoreEntry */
- tunnelState->al, /* AccessLogEntry */
+ NULL, /* StoreEntry */
+ tunnelState->al, /* AccessLogEntry */
&hdr_out,
- flags); /* flags */
+ flags); /* flags */
packerToMemInit(&p, &mb);
hdr_out.packInto(&p);
hdr_out.clean();
// does not see it) and only then start shoveling data to the client
AsyncCall::Pointer writeCall = commCbCall(5,5, "tunnelConnectReqWriteDone",
CommIoCbPtrFun(tunnelConnectReqWriteDone,
- tunnelState));
+ tunnelState));
Comm::Write(srv, &mb, writeCall);
tunnelState->connectReqWriting = true;
tunnelState->request = request;
tunnelState->server.size_ptr = NULL; //Set later if ClientSocketContext is available
- // Temporary static variable to store the unneeded for our case status code
+ // Temporary static variable to store the unneeded for our case status code
static int status_code = 0;
tunnelState->status_ptr = &status_code;
tunnelState->client.conn = clientConn;
Comm::Write(tunnelState->client.conn, buf.content(), buf.contentSize(), call, NULL);
}
#endif //USE_OPENSSL
+