Monero
Loading...
Searching...
No Matches
node_server.cpp File Reference
Include dependency graph for node_server.cpp:

Classes

class  test_core

Namespaces

namespace  cryptonote
 Holds cryptonote related classes and helpers.
namespace  nodetool

Macros

#define MAKE_IPV4_ADDRESS(a, b, c, d)
#define MAKE_IPV4_ADDRESS_PORT(a, b, c, d, e)
#define MAKE_IPV4_SUBNET(a, b, c, d, e)

Typedefs

typedef nodetool::node_server< cryptonote::t_cryptonote_protocol_handler< test_core > > Server

Functions

static bool is_blocked (Server &server, const epee::net_utils::network_address &address, time_t *t=NULL)
 TEST (ban, add)
 TEST (ban, limit)
 TEST (ban, subnet)
 TEST (ban, ignores_port)
 TEST (ban, file_banlist)
 TEST (node_server, bind_same_p2p_port)
 TEST (cryptonote_protocol_handler, race_condition)
 TEST (node_server, race_condition)

Macro Definition Documentation

◆ MAKE_IPV4_ADDRESS

#define MAKE_IPV4_ADDRESS ( a,
b,
c,
d )
Value:
cryptonote::block b
Definition block.cpp:40
Definition net_utils_base.h:69
Definition d.py:1
#define MAKE_IP(a1, a2, a3, a4)
Definition net_helper.h:56
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1124

◆ MAKE_IPV4_ADDRESS_PORT

#define MAKE_IPV4_ADDRESS_PORT ( a,
b,
c,
d,
e )

◆ MAKE_IPV4_SUBNET

#define MAKE_IPV4_SUBNET ( a,
b,
c,
d,
e )

Typedef Documentation

◆ Server

Function Documentation

◆ is_blocked()

bool is_blocked ( Server & server,
const epee::net_utils::network_address & address,
time_t * t = NULL )
static

◆ TEST() [1/8]

TEST ( ban ,
add  )

◆ TEST() [2/8]

TEST ( ban ,
file_banlist  )

◆ TEST() [3/8]

TEST ( ban ,
ignores_port  )

◆ TEST() [4/8]

TEST ( ban ,
limit  )

◆ TEST() [5/8]

TEST ( ban ,
subnet  )

◆ TEST() [6/8]

TEST ( cryptonote_protocol_handler ,
race_condition  )

◆ TEST() [7/8]

TEST ( node_server ,
bind_same_p2p_port  )

◆ TEST() [8/8]

TEST ( node_server ,
race_condition  )