diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-07-06 16:06:46 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-07-06 16:08:18 +0200 |
commit | 9f4da19babf6989a639be29c70c1d2470c5829a6 (patch) | |
tree | 7cf5e3455fdaa26b1a20e5fb7e2f48df172d8d17 /src/net.h | |
parent | dd49e92fb0cae0dcdf0b2ea303da99c7814db473 (diff) |
Use pong receive time rather than processing time
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |