Keep a "connected" state in the SocketHandler class

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent 483e17020d
commit aa53276859
4 changed files with 16 additions and 2 deletions
+2
View File
@@ -61,6 +61,7 @@ public:
* should be truncated, only the unused data should be left untouched.
*/
virtual void parse_in_buffer() = 0;
bool is_connected() const;
protected:
socket_t socket;
@@ -84,6 +85,7 @@ protected:
* (actually it is sharing our ownership with a Bridge).
*/
Poller* poller;
bool connected;
private:
SocketHandler(const SocketHandler&) = delete;