The network_node_api class allows maintenance of p2p connections.
More...
#include <api.hpp>
The network_node_api class allows maintenance of p2p connections.
Definition at line 133 of file api.hpp.
◆ network_node_api()
scorum::app::network_node_api::network_node_api |
( |
const api_context & |
a | ) |
|
◆ add_node()
void scorum::app::network_node_api::add_node |
( |
const fc::ip::endpoint & |
ep | ) |
|
add_node Connect to a new peer
- Parameters
-
ep | The IP/Port of the peer to connect to |
Definition at line 362 of file api.cpp.
◆ get_advanced_node_parameters()
fc::variant_object scorum::app::network_node_api::get_advanced_node_parameters |
( |
| ) |
const |
Get advanced node parameters, such as desired and max number of connections.
Definition at line 377 of file api.cpp.
◆ get_connected_peers()
std::vector< graphene::net::peer_status > scorum::app::network_node_api::get_connected_peers |
( |
| ) |
const |
Get status of all current connections to peers.
Definition at line 367 of file api.cpp.
◆ get_info()
fc::variant_object scorum::app::network_node_api::get_info |
( |
| ) |
const |
Return general network information, such as p2p port.
Definition at line 355 of file api.cpp.
◆ get_potential_peers()
std::vector< graphene::net::potential_peer_record > scorum::app::network_node_api::get_potential_peers |
( |
| ) |
const |
Return list of potential peers.
Definition at line 372 of file api.cpp.
◆ on_api_startup()
void scorum::app::network_node_api::on_api_startup |
( |
| ) |
|
internal method, not exposed via JSON RPC
Definition at line 351 of file api.cpp.
◆ set_advanced_node_parameters()
void scorum::app::network_node_api::set_advanced_node_parameters |
( |
const fc::variant_object & |
params | ) |
|
Set advanced node parameters, such as desired and max number of connections.
- Parameters
-
params | a JSON object containing the name/value pairs for the parameters to set |
Definition at line 382 of file api.cpp.
The documentation for this class was generated from the following files: