Electroneum
Loading...
Searching...
No Matches
net_utils_base.h File Reference
#include <boost/uuid/uuid.hpp>
#include <boost/asio/io_service.hpp>
#include <typeinfo>
#include <type_traits>
#include "enums.h"
#include "serialization/keyvalue_serialization.h"
#include "misc_log_ex.h"
Include dependency graph for net_utils_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  epee::net_utils::ipv4_network_address
class  epee::net_utils::network_address
struct  epee::net_utils::connection_context_base
struct  epee::net_utils::i_service_endpoint

Namespaces

namespace  net
namespace  epee
namespace  epee::net_utils

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net"
#define MAKE_IP(a1, a2, a3, a4)
#define GET_IO_SERVICE(s)
#define LOG_ERROR_CC(ct, message)
#define LOG_WARNING_CC(ct, message)
#define LOG_INFO_CC(ct, message)
#define LOG_DEBUG_CC(ct, message)
#define LOG_TRACE_CC(ct, message)
#define LOG_CC(level, ct, message)
#define LOG_PRINT_CC_L0(ct, message)
#define LOG_PRINT_CC_L1(ct, message)
#define LOG_PRINT_CC_L2(ct, message)
#define LOG_PRINT_CC_L3(ct, message)
#define LOG_PRINT_CC_L4(ct, message)
#define LOG_PRINT_CCONTEXT_L0(message)
#define LOG_PRINT_CCONTEXT_L1(message)
#define LOG_PRINT_CCONTEXT_L2(message)
#define LOG_PRINT_CCONTEXT_L3(message)
#define LOG_ERROR_CCONTEXT(message)
#define CHECK_AND_ASSERT_MES_CC(condition, return_val, err_message)

Functions

bool epee::net_utils::operator== (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator!= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator< (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator<= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator> (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator>= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept
bool epee::net_utils::operator== (const network_address &lhs, const network_address &rhs)
bool epee::net_utils::operator!= (const network_address &lhs, const network_address &rhs)
bool epee::net_utils::operator< (const network_address &lhs, const network_address &rhs)
bool epee::net_utils::operator<= (const network_address &lhs, const network_address &rhs)
bool epee::net_utils::operator> (const network_address &lhs, const network_address &rhs)
bool epee::net_utils::operator>= (const network_address &lhs, const network_address &rhs)
std::string epee::net_utils::print_connection_context (const connection_context_base &ctx)
std::string epee::net_utils::print_connection_context_short (const connection_context_base &ctx)
 epee::net_utils::MAKE_LOGGABLE (connection_context_base, ct, os)

Macro Definition Documentation

◆ CHECK_AND_ASSERT_MES_CC

#define CHECK_AND_ASSERT_MES_CC ( condition,
return_val,
err_message )
Value:
CHECK_AND_ASSERT_MES(condition, return_val, "[" << epee::net_utils::print_connection_context_short(context) << "]" << err_message)
#define CHECK_AND_ASSERT_MES(expr, fail_ret_val, message)
std::string print_connection_context_short(const connection_context_base &ctx)

Definition at line 369 of file net_utils_base.h.

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net"

Definition at line 41 of file net_utils_base.h.

◆ GET_IO_SERVICE

#define GET_IO_SERVICE ( s)
Value:
((s).get_io_service())

Definition at line 50 of file net_utils_base.h.

◆ LOG_CC

#define LOG_CC ( level,
ct,
message )
Value:
MLOG(level, ct << message)
std::string message("Message requiring signing")
#define MLOG(level, x)
Definition misc_log_ex.h:78

Definition at line 355 of file net_utils_base.h.

◆ LOG_DEBUG_CC

#define LOG_DEBUG_CC ( ct,
message )
Value:
#define MDEBUG(x)
Definition misc_log_ex.h:76

Definition at line 353 of file net_utils_base.h.

◆ LOG_ERROR_CC

#define LOG_ERROR_CC ( ct,
message )
Value:
#define MERROR(x)
Definition misc_log_ex.h:73

Definition at line 350 of file net_utils_base.h.

◆ LOG_ERROR_CCONTEXT

#define LOG_ERROR_CCONTEXT ( message)
Value:
#define LOG_ERROR_CC(ct, message)

Definition at line 367 of file net_utils_base.h.

◆ LOG_INFO_CC

#define LOG_INFO_CC ( ct,
message )
Value:
MINFO(ct << message)
#define MINFO(x)
Definition misc_log_ex.h:75

Definition at line 352 of file net_utils_base.h.

◆ LOG_PRINT_CC_L0

#define LOG_PRINT_CC_L0 ( ct,
message )
Value:
#define LOG_PRINT_L0(x)
Definition misc_log_ex.h:99

Definition at line 357 of file net_utils_base.h.

◆ LOG_PRINT_CC_L1

#define LOG_PRINT_CC_L1 ( ct,
message )
Value:
#define LOG_PRINT_L1(x)

Definition at line 358 of file net_utils_base.h.

◆ LOG_PRINT_CC_L2

#define LOG_PRINT_CC_L2 ( ct,
message )
Value:
#define LOG_PRINT_L2(x)

Definition at line 359 of file net_utils_base.h.

◆ LOG_PRINT_CC_L3

#define LOG_PRINT_CC_L3 ( ct,
message )
Value:
#define LOG_PRINT_L3(x)

Definition at line 360 of file net_utils_base.h.

◆ LOG_PRINT_CC_L4

#define LOG_PRINT_CC_L4 ( ct,
message )
Value:
#define LOG_PRINT_L4(x)

Definition at line 361 of file net_utils_base.h.

◆ LOG_PRINT_CCONTEXT_L0

#define LOG_PRINT_CCONTEXT_L0 ( message)
Value:
#define LOG_PRINT_CC_L0(ct, message)

Definition at line 363 of file net_utils_base.h.

◆ LOG_PRINT_CCONTEXT_L1

#define LOG_PRINT_CCONTEXT_L1 ( message)
Value:
#define LOG_PRINT_CC_L1(ct, message)

Definition at line 364 of file net_utils_base.h.

◆ LOG_PRINT_CCONTEXT_L2

#define LOG_PRINT_CCONTEXT_L2 ( message)
Value:
#define LOG_PRINT_CC_L2(ct, message)

Definition at line 365 of file net_utils_base.h.

◆ LOG_PRINT_CCONTEXT_L3

#define LOG_PRINT_CCONTEXT_L3 ( message)
Value:
#define LOG_PRINT_CC_L3(ct, message)

Definition at line 366 of file net_utils_base.h.

◆ LOG_TRACE_CC

#define LOG_TRACE_CC ( ct,
message )
Value:
#define MTRACE(x)
Definition misc_log_ex.h:77

Definition at line 354 of file net_utils_base.h.

◆ LOG_WARNING_CC

#define LOG_WARNING_CC ( ct,
message )
Value:
#define MWARNING(x)
Definition misc_log_ex.h:74

Definition at line 351 of file net_utils_base.h.

◆ MAKE_IP

#define MAKE_IP ( a1,
a2,
a3,
a4 )
Value:
(a1|(a2<<8)|(a3<<16)|(a4<<24))

Definition at line 44 of file net_utils_base.h.