Uncomment import/export functions.
This commit is contained in:
parent
433860b3cd
commit
78a7daf984
@ -85,7 +85,7 @@ void NeoComm_deinit();
|
|||||||
*/
|
*/
|
||||||
int NeoComm_connect(const char *address, const unsigned short port);
|
int NeoComm_connect(const char *address, const unsigned short port);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @brief Import a list of nodes from a node file and connect to them.
|
* @brief Import a list of nodes from a node file and connect to them.
|
||||||
*
|
*
|
||||||
* @param node_file Path to the node list file.
|
* @param node_file Path to the node list file.
|
||||||
@ -93,9 +93,9 @@ int NeoComm_connect(const char *address, const unsigned short port);
|
|||||||
* @return 1 upon success, 0 upon failure. Use NeoComm_get_last_error for a
|
* @return 1 upon success, 0 upon failure. Use NeoComm_get_last_error for a
|
||||||
* text description of the error.
|
* text description of the error.
|
||||||
*/
|
*/
|
||||||
//int NeoComm_import_nodes(const char *node_file);
|
int NeoComm_import_nodes(const char *node_file);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @brief Export current list of nodes into a file.
|
* @brief Export current list of nodes into a file.
|
||||||
*
|
*
|
||||||
* @param node_file path to node list file.
|
* @param node_file path to node list file.
|
||||||
@ -103,7 +103,7 @@ int NeoComm_connect(const char *address, const unsigned short port);
|
|||||||
* @return 1 upon success, 0 upon failure. Use NeoComm_get_last_error for a
|
* @return 1 upon success, 0 upon failure. Use NeoComm_get_last_error for a
|
||||||
* text description of the error.
|
* text description of the error.
|
||||||
*/
|
*/
|
||||||
//int NeoComm_export_nodes(const char *node_file);
|
int NeoComm_export_nodes(const char *node_file);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Join a channel.
|
* @brief Join a channel.
|
||||||
|
@ -67,7 +67,7 @@ int NeoComm_connect(const char *address, const unsigned short port) {
|
|||||||
|
|
||||||
// NOTICE: When the new OpenDHT release comes out this code should work.
|
// NOTICE: When the new OpenDHT release comes out this code should work.
|
||||||
// Meanwhile just keep it commented out.
|
// Meanwhile just keep it commented out.
|
||||||
/*int NeoComm_import_nodes(const char *node_file) {
|
int NeoComm_import_nodes(const char *node_file) {
|
||||||
if(not node.isRunning())
|
if(not node.isRunning())
|
||||||
{
|
{
|
||||||
add_error("NeoComm must be initialized.");
|
add_error("NeoComm must be initialized.");
|
||||||
@ -97,9 +97,9 @@ int NeoComm_connect(const char *address, const unsigned short port) {
|
|||||||
node.bootstrap(imported_nodes);
|
node.bootstrap(imported_nodes);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/*int NeoComm_export_nodes(const char *node_file) {
|
int NeoComm_export_nodes(const char *node_file) {
|
||||||
if(not node.isRunning())
|
if(not node.isRunning())
|
||||||
{
|
{
|
||||||
add_error("NeoComm must be initialized.");
|
add_error("NeoComm must be initialized.");
|
||||||
@ -113,4 +113,4 @@ int NeoComm_connect(const char *address, const unsigned short port) {
|
|||||||
}
|
}
|
||||||
msgpack::pack(export_file, node.exportNodes());
|
msgpack::pack(export_file, node.exportNodes());
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user