X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnet.h;h=369cead05a2477b75b4f358a9682f312a1b61ac4;hb=9de5ff869fb469db2d821f4ecfda44657259ec26;hp=7306d136b63967e40345c63280bf43322dc9c042;hpb=92948780909cc9e3349409d6102dbe5adf1d5a10;p=novacoin.git diff --git a/src/net.h b/src/net.h index 7306d13..369cead 100644 --- a/src/net.h +++ b/src/net.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_NET_H #define BITCOIN_NET_H +#include #include #ifndef Q_MOC_RUN #include @@ -27,6 +28,8 @@ class CNode; class CBlockIndex; extern int nBestHeight; +const uint16_t nSocksDefault = 9050; +const uint16_t nPortZero = 0; inline uint64_t ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer", 5*1000); } @@ -111,6 +114,7 @@ enum threadId THREAD_RPCHANDLER, THREAD_MINTER, THREAD_SCRIPTCHECK, + THREAD_NTP, THREAD_MAX }; @@ -233,7 +237,7 @@ public: nLastSendEmpty = GetTime(); nTimeConnected = GetTime(); nHeaderStart = -1; - nMessageStart = UINT_MAX; + nMessageStart = std::numeric_limits::max(); addr = addrIn; addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn; nVersion = 0; @@ -375,7 +379,7 @@ public: return; vSend.resize(nHeaderStart); nHeaderStart = -1; - nMessageStart = UINT_MAX; + nMessageStart = std::numeric_limits::max(); LEAVE_CRITICAL_SECTION(cs_vSend); if (fDebug) @@ -410,7 +414,7 @@ public: } nHeaderStart = -1; - nMessageStart = UINT_MAX; + nMessageStart = std::numeric_limits::max(); LEAVE_CRITICAL_SECTION(cs_vSend); }