From 9bfa593eee5a528c70dfaed39feb140a7b10e8b5 Mon Sep 17 00:00:00 2001 From: rfree2monero Date: Wed, 8 Apr 2015 19:54:07 +0200 Subject: [fix] Network 1.8: unlimited the RPC connections works for unit tests build, too --- src/p2p/connection_basic.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/p2p/connection_basic.cpp') diff --git a/src/p2p/connection_basic.cpp b/src/p2p/connection_basic.cpp index ed15c0986..0454f30e3 100644 --- a/src/p2p/connection_basic.cpp +++ b/src/p2p/connection_basic.cpp @@ -94,6 +94,18 @@ namespace epee namespace net_utils { + std::string to_string(t_connection_type type) + { + if (type == e_connection_type_NET) + return std::string("NET"); + else if (type == e_connection_type_RPC) + return std::string("RPC"); + else if (type == e_connection_type_P2P) + return std::string("P2P"); + + return std::string("UNKNOWN"); + } + /* ============================================================================ */ -- cgit v1.2.3