|
|
@ -607,7 +607,7 @@ public: |
|
|
|
std::list<CNetMessage> vRecvMsg; |
|
|
|
std::list<CNetMessage> vRecvMsg; |
|
|
|
CCriticalSection cs_vRecvMsg; |
|
|
|
CCriticalSection cs_vRecvMsg; |
|
|
|
uint64_t nRecvBytes; |
|
|
|
uint64_t nRecvBytes; |
|
|
|
int nRecvVersion; |
|
|
|
std::atomic<int> nRecvVersion; |
|
|
|
|
|
|
|
|
|
|
|
int64_t nLastSend; |
|
|
|
int64_t nLastSend; |
|
|
|
int64_t nLastRecv; |
|
|
|
int64_t nLastRecv; |
|
|
@ -747,12 +747,13 @@ public: |
|
|
|
// requires LOCK(cs_vRecvMsg)
|
|
|
|
// requires LOCK(cs_vRecvMsg)
|
|
|
|
bool ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete); |
|
|
|
bool ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete); |
|
|
|
|
|
|
|
|
|
|
|
// requires LOCK(cs_vRecvMsg)
|
|
|
|
|
|
|
|
void SetRecvVersion(int nVersionIn) |
|
|
|
void SetRecvVersion(int nVersionIn) |
|
|
|
{ |
|
|
|
{ |
|
|
|
nRecvVersion = nVersionIn; |
|
|
|
nRecvVersion = nVersionIn; |
|
|
|
BOOST_FOREACH(CNetMessage &msg, vRecvMsg) |
|
|
|
} |
|
|
|
msg.SetVersion(nVersionIn); |
|
|
|
int GetRecvVersion() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return nRecvVersion; |
|
|
|
} |
|
|
|
} |
|
|
|
void SetSendVersion(int nVersionIn) |
|
|
|
void SetSendVersion(int nVersionIn) |
|
|
|
{ |
|
|
|
{ |
|
|
|