diff options
| author | Riccardo Spagni <ric@spagni.net> | 2015-04-08 23:07:21 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2015-04-08 23:07:24 +0200 |
| commit | 1523762f59ad0c06f0b19d9de23e5ea40e8ed32f (patch) | |
| tree | b12e477bbc9e39cf633fde935cf7e8595ae3a4ac /src/p2p/connection_basic.cpp | |
| parent | cbddb5f6903a45088671096807317b0eae8073a7 (diff) | |
| parent | 9bfa593eee5a528c70dfaed39feb140a7b10e8b5 (diff) | |
| download | monzero-core-1523762f59ad0c06f0b19d9de23e5ea40e8ed32f.tar.gz monzero-core-1523762f59ad0c06f0b19d9de23e5ea40e8ed32f.tar.xz monzero-core-1523762f59ad0c06f0b19d9de23e5ea40e8ed32f.zip | |
Merge pull request #257
9bfa593 [fix] Network 1.8: unlimited the RPC connections (rfree2monero)
Diffstat (limited to 'src/p2p/connection_basic.cpp')
| -rw-r--r-- | src/p2p/connection_basic.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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"); + } + /* ============================================================================ */ |
