Establishes connection with the other node
CLI Example
Command syntax:
node connect
-net <net_name>
{-addr <node_address> | -alias <node_alias> | auto}
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-addr\-alias\auto - address of the node\ alias of the node\ connects to random node
Example:
Command:
cellframe-node-cli node connect
-net mileena
-addr CCCC::0000::0000::0000
Response:
"None"
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"node", "params":["node;connect;-addr;CCCC::0000::0000::0000;-net;mileena"], "id":"1"}'
Response:
{
"type": 0,
"result":"",
"errors": null,
"id": 1
}