aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-07-07 06:28:12 +0200
committerWladimir J. van der Laan <[email protected]>2014-07-07 06:28:43 +0200
commite1f7c7d173a7522673f4638a6125ac43e78d1258 (patch)
tree8c6e44066ac11a3b8dbb32da10a040905369f0e0 /src/net.h
parentMerge pull request #4421 (diff)
parentUse pong receive time rather than processing time (diff)
downloaddiscoin-e1f7c7d173a7522673f4638a6125ac43e78d1258.tar.xz
discoin-e1f7c7d173a7522673f4638a6125ac43e78d1258.zip
Merge pull request #4472
9f4da19 Use pong receive time rather than processing time (Pieter Wuille)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 3b169f442..c2a041645 100644
--- a/src/net.h
+++ b/src/net.h
@@ -173,11 +173,14 @@ public:
CDataStream vRecv; // received message data
unsigned int nDataPos;
+ int64_t nTime; // time (in microseconds) of message receipt.
+
CNetMessage(int nTypeIn, int nVersionIn) : hdrbuf(nTypeIn, nVersionIn), vRecv(nTypeIn, nVersionIn) {
hdrbuf.resize(24);
in_data = false;
nHdrPos = 0;
nDataPos = 0;
+ nTime = 0;
}
bool complete() const