summaryrefslogtreecommitdiff
path: root/src/PeerReceiveHandshakeCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 15:02:20 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 15:02:20 +0000
commit9afc36152a1ce428243a3ace608d0508716a2efb (patch)
tree2e144d04570a058f3e2716d7b98f16803392cdbe /src/PeerReceiveHandshakeCommand.cc
parent7cd9b21937c42606354610c7ae85a0857b474cf5 (diff)
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variables of Command private. Added accessor funcs.
Diffstat (limited to 'src/PeerReceiveHandshakeCommand.cc')
-rw-r--r--src/PeerReceiveHandshakeCommand.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PeerReceiveHandshakeCommand.cc b/src/PeerReceiveHandshakeCommand.cc
index 323fb9f7..341cbc8e 100644
--- a/src/PeerReceiveHandshakeCommand.cc
+++ b/src/PeerReceiveHandshakeCommand.cc
@@ -130,11 +130,11 @@ bool PeerReceiveHandshakeCommand::executeInternal()
btRuntime->lessThanMaxPeers()) {
if(peerStorage->addPeer(peer)) {
- peer->usedBy(cuid);
+ peer->usedBy(getCuid());
PeerInteractionCommand* command =
new PeerInteractionCommand
- (cuid,
+ (getCuid(),
downloadContext->getOwnerRequestGroup(),
peer,
e,
@@ -145,10 +145,10 @@ bool PeerReceiveHandshakeCommand::executeInternal()
PeerInteractionCommand::RECEIVER_WAIT_HANDSHAKE,
_peerConnection);
e->addCommand(command);
- if(logger->debug()) {
- logger->debug(MSG_INCOMING_PEER_CONNECTION,
- util::itos(cuid).c_str(),
- util::itos(peer->usedBy()).c_str());
+ if(getLogger()->debug()) {
+ getLogger()->debug(MSG_INCOMING_PEER_CONNECTION,
+ util::itos(getCuid()).c_str(),
+ util::itos(peer->usedBy()).c_str());
}
}
}