Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show All 18 Lines | |||||
#include <net_permissions.h> | #include <net_permissions.h> | ||||
#include <netaddress.h> | #include <netaddress.h> | ||||
#include <protocol.h> | #include <protocol.h> | ||||
#include <random.h> | #include <random.h> | ||||
#include <streams.h> | #include <streams.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <threadinterrupt.h> | #include <threadinterrupt.h> | ||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <util/check.h> | |||||
#include <validation.h> // For cs_main | #include <validation.h> // For cs_main | ||||
#include <atomic> | #include <atomic> | ||||
#include <condition_variable> | #include <condition_variable> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <deque> | #include <deque> | ||||
#include <memory> | #include <memory> | ||||
#include <thread> | #include <thread> | ||||
▲ Show 20 Lines • Show All 1,074 Lines • ▼ Show 20 Lines | int GetRefCount() const { | ||||
assert(nRefCount >= 0); | assert(nRefCount >= 0); | ||||
return nRefCount; | return nRefCount; | ||||
} | } | ||||
bool ReceiveMsgBytes(const Config &config, const char *pch, uint32_t nBytes, | bool ReceiveMsgBytes(const Config &config, const char *pch, uint32_t nBytes, | ||||
bool &complete); | bool &complete); | ||||
void SetCommonVersion(int greatest_common_version) { | void SetCommonVersion(int greatest_common_version) { | ||||
Assume(m_greatest_common_version == INIT_PROTO_VERSION); | |||||
m_greatest_common_version = greatest_common_version; | m_greatest_common_version = greatest_common_version; | ||||
} | } | ||||
int GetCommonVersion() const { return m_greatest_common_version; } | int GetCommonVersion() const { return m_greatest_common_version; } | ||||
CService GetAddrLocal() const; | CService GetAddrLocal() const; | ||||
//! May not be called more than once | //! May not be called more than once | ||||
void SetAddrLocal(const CService &addrLocalIn); | void SetAddrLocal(const CService &addrLocalIn); | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |