libt2n: (gerd) add protocol version config, add server callbacks (not fully working...
[libt2n] / src / socket_client.hxx
index 8a379f8..a35bbfd 100644 (file)
@@ -30,7 +30,8 @@ namespace libt2n
  */
 class socket_client_connection : public client_connection, public socket_handler
 {
-    static const int max_retries_default=3;
+    public:
+        static const int max_retries_default=3;
 
     private:
         void real_write(const std::string& data)
@@ -44,6 +45,9 @@ class socket_client_connection : public client_connection, public socket_handler
         std::string server;
         int port;
 
+        std::ostream* get_logstream(log_level_values level)
+            { return client_connection::get_logstream(level); }
+
     public:
         socket_client_connection(const std::string& _server, int _port, int _max_retries=max_retries_default);
         socket_client_connection(const std::string& _path, int _max_retries=max_retries_default);