mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 11:55:03 -04:00
RPC: get_info add rpc_connections_count
This commit is contained in:
parent
a2c2f4e4b0
commit
fa51408272
4 changed files with 16 additions and 1 deletions
|
@ -213,6 +213,12 @@ namespace net_utils
|
|||
|
||||
int get_binded_port(){return m_port;}
|
||||
|
||||
long get_connections_count() const
|
||||
{
|
||||
auto connections_count = (m_sock_count > 0) ? (m_sock_count - 1) : 0; // Socket count minus listening socket
|
||||
return connections_count;
|
||||
}
|
||||
|
||||
boost::asio::io_service& get_io_service(){return io_service_;}
|
||||
|
||||
struct idle_callback_conext_base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue