aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2014-09-25 09:01:54 +0200
committerPhilip Kaufmann <[email protected]>2014-10-06 13:13:25 +0200
commitde10efd154d6c02fe8549a2dc9649a96cf601fd2 (patch)
tree00dfcc650d5ff65d67fa0130314a0862f2d4ba2c /src/netbase.h
parentMerge pull request #5036 (diff)
downloaddiscoin-de10efd154d6c02fe8549a2dc9649a96cf601fd2.tar.xz
discoin-de10efd154d6c02fe8549a2dc9649a96cf601fd2.zip
add -timeout default as constant and use them
- update help message text - simplify code in init to check for -timeout
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h
index 9fc5c72eb..1455cd8c3 100644
--- a/src/netbase.h
+++ b/src/netbase.h
@@ -19,6 +19,9 @@
extern int nConnectTimeout;
extern bool fNameLookup;
+/** -timeout default */
+static const int DEFAULT_CONNECT_TIMEOUT = 5000;
+
#ifdef WIN32
// In MSVC, this is defined as a macro, undefine it to prevent a compile and link error
#undef SetPort