MXS-2196: Track listener state

The listener now tracks its own the state instead of using the session
state.
This commit is contained in:
Markus Mäkelä
2018-11-30 13:07:22 +02:00
parent ccc91df0c7
commit 5a79dbfb53
2 changed files with 33 additions and 19 deletions

View File

@ -178,7 +178,17 @@ public:
void set_users(struct users* u);
private:
enum State
{
CREATED,
STARTED,
STOPPED,
FAILED,
DESTROYED
};
std::string m_name; /**< Name of the listener */
State m_state; /**< Listener state */
std::string m_protocol; /**< Protocol module to load */
uint16_t m_port; /**< Port to listen on */
std::string m_address; /**< Address to listen with */