add -timeout default as constant and use them

- update help message text
- simplify code in init to check for -timeout
This commit is contained in:
Philip Kaufmann
2014-09-25 09:01:54 +02:00
parent 5505a1b13f
commit de10efd154
3 changed files with 8 additions and 8 deletions

View File

@@ -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