Browse Source

Add some p2p CLI options

pull/305/head
Duke Leto 3 years ago
parent
commit
dd1453422b
  1. 7
      src/net.cpp

7
src/net.cpp

@ -76,10 +76,9 @@ using namespace hush;
using namespace std; using namespace std;
namespace { namespace {
//TODO: Make these CLI args int MAX_OUTBOUND_CONNECTIONS = GetArg("-maxoutboundconnections",64);
const int MAX_OUTBOUND_CONNECTIONS = 64; int MAX_FEELER_CONNECTIONS = GetArg("-maxfeelerconnections",1);
const int MAX_FEELER_CONNECTIONS = 1; int MAX_INBOUND_FROMIP = GetArg("-maxinboundfromip",3);
const int MAX_INBOUND_FROMIP = 3;
struct ListenSocket { struct ListenSocket {
SOCKET socket; SOCKET socket;

Loading…
Cancel
Save