Uncomment import/export functions.
This commit is contained in:
@ -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.
|
||||
// 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())
|
||||
{
|
||||
add_error("NeoComm must be initialized.");
|
||||
@ -97,9 +97,9 @@ int NeoComm_connect(const char *address, const unsigned short port) {
|
||||
node.bootstrap(imported_nodes);
|
||||
}
|
||||
return 1;
|
||||
}*/
|
||||
}
|
||||
|
||||
/*int NeoComm_export_nodes(const char *node_file) {
|
||||
int NeoComm_export_nodes(const char *node_file) {
|
||||
if(not node.isRunning())
|
||||
{
|
||||
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());
|
||||
return 1;
|
||||
}*/
|
||||
}
|
||||
|
Reference in New Issue
Block a user