summaryrefslogtreecommitdiff
path: root/src/anyCtrOptions.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-11-25 04:13:55 +0000
committerChristian Pointner <equinox@anytun.org>2008-11-25 04:13:55 +0000
commitea607fcc37694c55e10d0180bdaf8a676bbdf7c8 (patch)
tree9310e0c444ce30049c8b8ab0a223f7e7c2d003e0 /src/anyCtrOptions.h
parentsmall type cleanup (diff)
options parser support ipv6 now
fixed anytun-controld - fixed log issues - added better error output - some cleanups
Diffstat (limited to 'src/anyCtrOptions.h')
-rw-r--r--src/anyCtrOptions.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/anyCtrOptions.h b/src/anyCtrOptions.h
index 1a9e8b3..d4789c3 100644
--- a/src/anyCtrOptions.h
+++ b/src/anyCtrOptions.h
@@ -62,8 +62,8 @@ public:
Options& setFileName(std::string f);
std::string getBindToAddr();
Options& setBindToAddr(std::string b);
- uint16_t getBindToPort();
- Options& setBindToPort(uint16_t b);
+ std::string getBindToPort();
+ Options& setBindToPort(std::string b);
private:
@@ -82,10 +82,12 @@ private:
};
friend class instanceCleaner;
+ bool splitAndSetHostPort(std::string hostPort);
+
Mutex mutex;
std::string bind_to_addr_;
- uint16_t bind_to_port_;
+ std::string bind_to_port_;
std::string progname_;
bool daemonize_;
bool chroot_;