libt2n: (gerd) fixes & testcase
[libt2n] / src / socket_handler.hxx
index e249cf5..832fa3a 100644 (file)
@@ -54,9 +54,11 @@ class socket_handler
         bool fill_buffer(std::string& buffer, long long usec_timeout);
         bool fill_buffer(std::string& buffer);
 
-        void close();
+        virtual void close();
 
-        void write(const std::string& data);
+        bool is_closed();
+
+        void socket_write(const std::string& data);
 };
 
 }