Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show All 39 Lines | |||||
// Dump addresses to peers.dat and banlist.dat every 15 minutes (900s) | // Dump addresses to peers.dat and banlist.dat every 15 minutes (900s) | ||||
#define DUMP_ADDRESSES_INTERVAL 900 | #define DUMP_ADDRESSES_INTERVAL 900 | ||||
// We add a random period time (0 to 1 seconds) to feeler connections to prevent | // We add a random period time (0 to 1 seconds) to feeler connections to prevent | ||||
// synchronization. | // synchronization. | ||||
#define FEELER_SLEEP_WINDOW 1 | #define FEELER_SLEEP_WINDOW 1 | ||||
#if !defined(HAVE_MSG_NOSIGNAL) && !defined(MSG_NOSIGNAL) | #if !defined(HAVE_MSG_NOSIGNAL) | ||||
#define MSG_NOSIGNAL 0 | #define MSG_NOSIGNAL 0 | ||||
#endif | #endif | ||||
// MSG_DONTWAIT is not available on some platforms, if it doesn't exist define | |||||
// it as 0 | |||||
#if !defined(HAVE_MSG_DONTWAIT) | |||||
#define MSG_DONTWAIT 0 | |||||
#endif | |||||
// Fix for ancient MinGW versions, that don't have defined these in ws2tcpip.h. | // Fix for ancient MinGW versions, that don't have defined these in ws2tcpip.h. | ||||
// Todo: Can be removed when our pull-tester is upgraded to a modern MinGW | // Todo: Can be removed when our pull-tester is upgraded to a modern MinGW | ||||
// version. | // version. | ||||
#ifdef WIN32 | #ifdef WIN32 | ||||
#ifndef PROTECTION_LEVEL_UNRESTRICTED | #ifndef PROTECTION_LEVEL_UNRESTRICTED | ||||
#define PROTECTION_LEVEL_UNRESTRICTED 10 | #define PROTECTION_LEVEL_UNRESTRICTED 10 | ||||
#endif | #endif | ||||
#ifndef IPV6_PROTECTION_LEVEL | #ifndef IPV6_PROTECTION_LEVEL | ||||
▲ Show 20 Lines • Show All 3,082 Lines • Show Last 20 Lines |