-class STG_CONFIG_SETTINGS {
-public:
- STG_CONFIG_SETTINGS() : errorStr(), port(0) {}
- virtual ~STG_CONFIG_SETTINGS() {}
- const std::string & GetStrError() const { return errorStr; }
- int ParseSettings(const MODULE_SETTINGS & s);
- uint16_t GetPort() const { return port; }
-private:
- std::string errorStr;
- uint16_t port;
+class STG_CONFIG_SETTINGS
+{
+ public:
+ STG_CONFIG_SETTINGS() : m_port(0), m_bindAddress("0.0.0.0") {}
+ virtual ~STG_CONFIG_SETTINGS() {}
+ const std::string & GetStrError() const { return errorStr; }
+ bool ParseSettings(const MODULE_SETTINGS & s);
+ uint16_t GetPort() const { return m_port; }
+ const std::string & GetBindAddress() const { return m_bindAddress; }
+ private:
+ std::string errorStr;
+ uint16_t m_port;
+ std::string m_bindAddress;