summaryrefslogtreecommitdiff
path: root/src/PeerSessionResource.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-10-07 22:14:06 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-10-07 22:14:06 +0900
commit71620854c73624da775dc190e5f17ef6b556442a (patch)
tree471680de0f4dd303ddee4f3714c769e2c64947a7 /src/PeerSessionResource.h
parent8b0c701266a56c5ccc7c4ea6b605a9e0c9ef823d (diff)
Moved bool members to the last to reduce structure size
Diffstat (limited to 'src/PeerSessionResource.h')
-rw-r--r--src/PeerSessionResource.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/PeerSessionResource.h b/src/PeerSessionResource.h
index 84e7f537..e1683d34 100644
--- a/src/PeerSessionResource.h
+++ b/src/PeerSessionResource.h
@@ -52,6 +52,20 @@ class BtMessageDispatcher;
class PeerSessionResource {
private:
+ BitfieldMan* bitfieldMan_;
+ // fast index set which a peer has sent to localhost.
+ std::set<size_t> peerAllowedIndexSet_;
+ // fast index set which localhost has sent to a peer.
+ std::set<size_t> amAllowedIndexSet_;
+ ExtensionMessageRegistry extreg_;
+ PeerStat peerStat_;
+
+ Timer lastDownloadUpdate_;
+
+ Timer lastAmUnchoking_;
+
+ BtMessageDispatcher* dispatcher_;
+
// localhost is choking this peer
bool amChoking_;
// localhost is interested in this peer
@@ -66,23 +80,9 @@ private:
bool optUnchoking_;
// this peer is snubbing.
bool snubbing_;
-
- BitfieldMan* bitfieldMan_;
bool fastExtensionEnabled_;
- // fast index set which a peer has sent to localhost.
- std::set<size_t> peerAllowedIndexSet_;
- // fast index set which localhost has sent to a peer.
- std::set<size_t> amAllowedIndexSet_;
bool extendedMessagingEnabled_;
- ExtensionMessageRegistry extreg_;
bool dhtEnabled_;
- PeerStat peerStat_;
-
- Timer lastDownloadUpdate_;
-
- Timer lastAmUnchoking_;
-
- BtMessageDispatcher* dispatcher_;
public:
PeerSessionResource(int32_t pieceLength, int64_t totalLength);