aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorBrandon Dahler <brandon.dahler@gmail.com>2013-04-13 00:13:08 -0500
committerBrandon Dahler <brandon.dahler@gmail.com>2013-11-10 09:36:28 -0600
commit51ed9ec971614aebdbfbd9527aba365dd0afd437 (patch)
treed2f910390e55aef857023812fbdaefdd66cd99ff /src/protocol.h
parent7c4c207be8420d394a5abc4368d1bb69ad4f8067 (diff)
downloadbitcoin-51ed9ec971614aebdbfbd9527aba365dd0afd437.tar.xz
Cleanup code using forward declarations.
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 3d8eae55f9..86e08ddcfa 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -11,11 +11,13 @@
#define __INCLUDED_PROTOCOL_H__
#include "chainparams.h"
-#include "serialize.h"
#include "netbase.h"
-#include <string>
+#include "serialize.h"
#include "uint256.h"
+#include <stdint.h>
+#include <string>
+
/** Message header.
* (4) message start.
* (12) command.
@@ -67,7 +69,7 @@ class CAddress : public CService
{
public:
CAddress();
- explicit CAddress(CService ipIn, uint64 nServicesIn=NODE_NETWORK);
+ explicit CAddress(CService ipIn, uint64_t nServicesIn=NODE_NETWORK);
void Init();
@@ -90,13 +92,13 @@ class CAddress : public CService
// TODO: make private (improves encapsulation)
public:
- uint64 nServices;
+ uint64_t nServices;
// disk and network only
unsigned int nTime;
// memory only
- int64 nLastTry;
+ int64_t nLastTry;
};
/** inv message data */