X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnet.h;h=cf80be27d4541b763809b46ae785c31f3ce72aa6;hp=c1d478a4258ef0ceca013e27bf3afc7e30f45ad7;hb=8de38355024dfd223507471a54a66793e1245f63;hpb=28f9882707d389250e307ebf58dcf981340f1381 diff --git a/src/net.h b/src/net.h index c1d478a..cf80be2 100644 --- a/src/net.h +++ b/src/net.h @@ -145,6 +145,9 @@ public: int64 nReleaseTime; int nStartingHeight; int nMisbehavior; + uint64 nSendBytes; + uint64 nRecvBytes; + bool fSyncNode; }; @@ -160,6 +163,8 @@ public: SOCKET hSocket; CDataStream vSend; CDataStream vRecv; + uint64 nSendBytes; + uint64 nRecvBytes; CCriticalSection cs_vSend; CCriticalSection cs_vRecv; int64 nLastSend; @@ -218,6 +223,8 @@ public: hSocket = hSocketIn; nLastSend = 0; nLastRecv = 0; + nSendBytes = 0; + nRecvBytes = 0; nLastSendEmpty = GetTime(); nTimeConnected = GetTime(); nHeaderStart = -1;