summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/socket_handler.hpp')
-rw-r--r--src/network/socket_handler.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp
index 675d247..ec63ea7 100644
--- a/src/network/socket_handler.hpp
+++ b/src/network/socket_handler.hpp
@@ -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;