Node stat function.
This commit is contained in:
parent
3e15f1dc8a
commit
5e816cf601
@ -105,6 +105,13 @@ int NeoComm_import_nodes(const char *node_file);
|
||||
*/
|
||||
int NeoComm_export_nodes(const char *node_file);
|
||||
|
||||
/**
|
||||
* @brief Retrieve statistics about the local node.
|
||||
*
|
||||
* @return A text description of the local node's status.
|
||||
*/
|
||||
const char *NeoComm_get_node_stats();
|
||||
|
||||
/**
|
||||
* @brief Join a channel.
|
||||
*
|
||||
|
@ -112,3 +112,7 @@ int NeoComm_export_nodes(const char *node_file) {
|
||||
msgpack::pack(export_file, node.exportNodes());
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char *NeoComm_get_node_stats() {
|
||||
return node.getNodesStats(AF_UNSPEC).toString().c_str();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user