summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
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_;