summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-23 18:15:44 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-23 18:15:44 +0000
commit547d50940fb66aae0a9d702913f3b02096a3304e (patch)
treea5a659e31967b82c218f33367a8f531494dc04e0 /options.h
parentparser now understands lists (diff)
mesh syncing works now
Diffstat (limited to 'options.h')
-rw-r--r--options.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/options.h b/options.h
index 191b303..9a4a4ed 100644
--- a/options.h
+++ b/options.h
@@ -33,6 +33,15 @@
#include "datatypes.h"
#include "threadUtils.hpp"
+#include <list>
+
+typedef struct OptionConnectTo
+{
+ std::string host;
+ uint16_t port;
+};
+
+typedef std::list<OptionConnectTo> ConnectToList;
class Options
{
@@ -77,10 +86,12 @@ public:
Options& setCypher(std::string c);
std::string getAuthAlgo();
Options& setAuthAlgo(std::string a);
+ ConnectToList getConnectTo();
private:
Mutex mutex;
+ ConnectToList connect_to_;
std::string progname_;
sender_id_t sender_id_;
std::string local_addr_;