summaryrefslogtreecommitdiff
path: root/src/AbstractProxyRequestCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
commitca4940622c05e50a50f77c621ade914029663446 (patch)
tree2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/AbstractProxyRequestCommand.cc
parentae957baa98d4f97ea2437596db5073f9c33d22ae (diff)
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
Diffstat (limited to 'src/AbstractProxyRequestCommand.cc')
-rw-r--r--src/AbstractProxyRequestCommand.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/AbstractProxyRequestCommand.cc b/src/AbstractProxyRequestCommand.cc
index 76771360..339e8fed 100644
--- a/src/AbstractProxyRequestCommand.cc
+++ b/src/AbstractProxyRequestCommand.cc
@@ -63,8 +63,8 @@ AbstractProxyRequestCommand::AbstractProxyRequestCommand
const SocketHandle& s)
:
AbstractCommand(cuid, req, fileEntry, requestGroup, e, s),
- _proxyRequest(proxyRequest),
- _httpConnection(new HttpConnection(cuid, s))
+ proxyRequest_(proxyRequest),
+ httpConnection_(new HttpConnection(cuid, s))
{
setTimeout(getOption()->getAsInt(PREF_CONNECT_TIMEOUT));
disableReadCheckSocket();
@@ -75,21 +75,21 @@ AbstractProxyRequestCommand::~AbstractProxyRequestCommand() {}
bool AbstractProxyRequestCommand::executeInternal() {
//socket->setBlockingMode();
- if(_httpConnection->sendBufferIsEmpty()) {
+ if(httpConnection_->sendBufferIsEmpty()) {
if(!checkIfConnectionEstablished
- (getSocket(), _connectedHostname, _connectedAddr, _connectedPort)) {
+ (getSocket(), connectedHostname_, connectedAddr_, connectedPort_)) {
return true;
}
SharedHandle<HttpRequest> httpRequest(new HttpRequest());
httpRequest->setUserAgent(getOption()->get(PREF_USER_AGENT));
httpRequest->setRequest(getRequest());
- httpRequest->setProxyRequest(_proxyRequest);
+ httpRequest->setProxyRequest(proxyRequest_);
- _httpConnection->sendProxyRequest(httpRequest);
+ httpConnection_->sendProxyRequest(httpRequest);
} else {
- _httpConnection->sendPendingData();
+ httpConnection_->sendPendingData();
}
- if(_httpConnection->sendBufferIsEmpty()) {
+ if(httpConnection_->sendBufferIsEmpty()) {
getDownloadEngine()->addCommand(getNextCommand());
return true;
} else {