Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| /** Run the feeler connection loop once every 2 minutes or 120 seconds. **/ | /** Run the feeler connection loop once every 2 minutes or 120 seconds. **/ | ||||
| static const int FEELER_INTERVAL = 120; | static const int FEELER_INTERVAL = 120; | ||||
| /** The maximum number of entries in an 'inv' protocol message */ | /** The maximum number of entries in an 'inv' protocol message */ | ||||
| static const unsigned int MAX_INV_SZ = 50000; | static const unsigned int MAX_INV_SZ = 50000; | ||||
| /** The maximum number of new addresses to accumulate before announcing. */ | /** The maximum number of new addresses to accumulate before announcing. */ | ||||
| static const unsigned int MAX_ADDR_TO_SEND = 1000; | static const unsigned int MAX_ADDR_TO_SEND = 1000; | ||||
| /** Maximum length of incoming protocol messages (no message over 4 MB is | /** Maximum length of incoming protocol messages (no message over 4 MB is | ||||
| * currently acceptable). */ | * currently acceptable). */ | ||||
| static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = 4 * 1000 * 1000; | static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = 32 * 1000 * 1000; | ||||
| /** Maximum length of strSubVer in `version` message */ | /** Maximum length of strSubVer in `version` message */ | ||||
| static const unsigned int MAX_SUBVERSION_LENGTH = 256; | static const unsigned int MAX_SUBVERSION_LENGTH = 256; | ||||
| /** Maximum number of automatic outgoing nodes */ | /** Maximum number of automatic outgoing nodes */ | ||||
| static const int MAX_OUTBOUND_CONNECTIONS = 8; | static const int MAX_OUTBOUND_CONNECTIONS = 8; | ||||
| /** Maximum number of addnode outgoing nodes */ | /** Maximum number of addnode outgoing nodes */ | ||||
| static const int MAX_ADDNODE_CONNECTIONS = 8; | static const int MAX_ADDNODE_CONNECTIONS = 8; | ||||
| /** -listen default */ | /** -listen default */ | ||||
| static const bool DEFAULT_LISTEN = true; | static const bool DEFAULT_LISTEN = true; | ||||
| ▲ Show 20 Lines • Show All 741 Lines • Show Last 20 Lines | |||||