summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-10 17:16:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-10 17:16:40 -0700
commit6b4346d1ac9c7bb25b810be4db62fc6e3d38a189 (patch)
treedd3561f9539111ec952e06ee1a73ca180f0638c2 /node
parent4e9280fc7a41aac6171165487412d2a9abd432a4 (diff)
downloadinfinitytier-6b4346d1ac9c7bb25b810be4db62fc6e3d38a189.tar.gz
infinitytier-6b4346d1ac9c7bb25b810be4db62fc6e3d38a189.zip
work in progress on API refactor
Diffstat (limited to 'node')
-rw-r--r--node/Node.hpp40
1 files changed, 35 insertions, 5 deletions
diff --git a/node/Node.hpp b/node/Node.hpp
index 6cc3ef40..179afbea 100644
--- a/node/Node.hpp
+++ b/node/Node.hpp
@@ -198,11 +198,7 @@ public:
throw();
/**
- * Cause run() to return
- *
- * This can be called from a signal handler or another thread to signal a
- * running node to shut down. Shutdown may take a few seconds, so run()
- * may not return instantly. Multiple calls are ignored.
+ * Terminate this node, causing run() to return
*
* @param reason Reason for termination
* @param reasonText Text to be returned by reasonForTermination()
@@ -216,6 +212,40 @@ public:
void resync()
throw();
+ /**
+ * Join a network
+ *
+ * @param nwid 16-digit hex network ID
+ */
+ bool join(const char *nwid)
+ throw();
+
+ /**
+ * Leave a network
+ *
+ * @param nwid 16-digit hex network ID
+ */
+ bool leave(const char *nwid)
+ throw();
+
+ void listPeers()
+ throw();
+
+ void listNetworks()
+ throw();
+
+ /**
+ * Check for software updates (if enabled)
+ */
+ bool updateCheck()
+ throw();
+
+ /**
+ * @return Description of last non-fatal error or empty string if none
+ */
+ const char *getLastError()
+ throw();
+
static const char *versionString() throw();
static unsigned int versionMajor() throw();
static unsigned int versionMinor() throw();